440 questions
0
votes
0
answers
73
views
VSCode Dev Containers: How to inject extra Docker build steps (installing certificates) only for local development?
I'm developing a Python project using VSCode Dev Containers. Until now, to build the container I'm developing on, I used the Dockerfile located in the project root, which the same one used for ...
0
votes
0
answers
48
views
How to enforce "linux/amd64" platform architecture in Visual Studio Code Dev Containers for Podman on Apple Silicon?
Environment
Host: macOS (Apple Silicon M1)
Container Engine: Podman (via podman-machine)
Extension: VS Code Dev Containers
Target Image: A private registry image with Poetry
Problem
When I try to ...
Tooling
0
votes
4
replies
133
views
Cache Go dependencies in dev container
I'm trying to build a pre-built dev container (see here). Among others, the app has some Go dependencies specified in go.mod (link to file):
module github.com/jovandeginste/workout-tracker/v2
go 1.24....
Tooling
1
vote
0
replies
45
views
Reuse "node_modules" from pre-built dev container
I'm trying to build a pre-built dev container (see here).
Among others, the app uses some Node.js packages. To speed up the dev container performance, I'd like to cache them. For this, I'm running npm ...
0
votes
1
answer
98
views
VSCode DevContainer in linux doesn't recognize Docker, or the packages installed during build
I have a devcontainer set up as a work environment on Debian 13. Until recently, it was working perfectly fine, but recently I started getting error messages like this:
Once I was already inside the ...
0
votes
1
answer
76
views
VS Code Devcontainer modify line endings from LF to CRLF
I have a C++ Project (incl. some platform specific scripts) which I develop in VS Code.
The project contains a devcontainer for Linux which works well under Linux.
Development for Windows (without ...
0
votes
0
answers
69
views
How to view the Docker log in GitHub Codespaces?
I cannot find a way to view the Docker log output for a Devcontainer that is launched in GitHub Codespaces.
I found the Terminal, but that is a terminal inside the container.
I found the DebugConsole, ...
0
votes
0
answers
116
views
Next.js with VS Code dev container
I would like to use VS Code dev container for developing Next.js application.
Therefore I do these steps in VS Code:
New Dev Container,
After creating container I move out .devcontainer and .github ...
1
vote
0
answers
40
views
How to open shell script in a GitHub Codespaces devcontainer within the VS Code shell?
The following file is within .devcontainer/devcontainer.json:
// See https://containers.dev/implementors/json_reference/ for configuration reference
{
"name": "my-devcontainer",
...
1
vote
1
answer
132
views
Pylance in devcontainer is loading forever
I am trying to set up a devcontainer on my desktop, but functions like autocomplete or go to function don't work. When I hover variable or function it shows never-ending load information Loading ...
1
vote
0
answers
47
views
How to apply a configuration after using "Attach to running container"
"Dev Containers: Open Attached Container Configuration File" command will open a local file in /home/<user>/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/...
1
vote
0
answers
89
views
Conditional sidecars in devcontainer?
I configured a devcontainer using a docker-compose.yaml. The „sidecars“ are a database and a Keycloak instance. It works well.
The Keycloak is only needed in some scenarios, so I’m looking for a way ...
0
votes
1
answer
90
views
Is it possible to have lock files (or similar) for VS Code extensions?
I am distributing internal use devcontainers, and wish to pre-test that the combination of extensions and features is working.
For features the devcontainer CLI can create a devcontainer-lock.json ...
0
votes
1
answer
232
views
Launch.json set up for VSCode debugging on qemu within docker container
New to docker/qemu/gdb.
I am able to "make debug" and "make gdb" and debug from CLI. However, I got an error (no executable specified) when I try to use VSCode debugger to attach ...
2
votes
1
answer
821
views
VSCode devcontainer and UV [closed]
I'm developing using VSCode's devcontainer, and I used pip with a requirements.txt file for a few years with no problems. Works like charm.
I'd like to upgrade to using uv, but I'm encountering a ...
0
votes
0
answers
12
views
Customize VSC remote docker attach command not working
Use case
(Windows VSC) --ssh--> (Linux Host) --VSC attach by docker exec... -> (Container)
I can run this case well, but I want to customize the docker command, and tried set both of VSC local ...
1
vote
1
answer
404
views
VSCode dev containers error with docker version
I've never been able to run the Dev Container extension due to this error:
Here are the logs:
[2025-06-22T22:32:48.629Z] Initializing configuration support...
[2025-06-22T22:32:48.630Z] Internal ...
1
vote
0
answers
90
views
VSCode Dev Container Permission Errors
I am trying to improve and generalize my develop setup with Dev Containers + Podman + Test Containers. I am running into some permission issues though. Specifically, running test container tests in a ...
0
votes
0
answers
112
views
Attach to toolbox on Fedora Silverblue ENV issues
Background:
OS
Bazzite (Fedora Silverblue)
VS-Code
Layered install with rpm-ostree
Environment
fedora default toolbox where I install whatever I need
Container
since it's the toolbox, I'm pretty sure ...
0
votes
0
answers
28
views
Different engines for VSCode devcontainers for different profiles
How can you define different devcontainer engines for each profile?
For example, I want to be able to use Podman for my local devcontainers, and Docker for remote.
Currently, the engine settings (Dev &...
0
votes
0
answers
196
views
VSCode Devcontainer Disconnects When Switching Between Wired and Wireless
I am using a docker devcontainer in VSCode through remote SSH. The devconatiner runs on a Linux workstation which has a wired connection to my network. I run VSCode on my windows laptop, connect to ...
-1
votes
1
answer
368
views
Failed to save 'users_controller.rb': Unable to write file 'vscode-remote://dev-container
I am currently setting up a new rails project on my windows machine using docker. More specifically I am using Docker desktop, WSL2, and dev containers in VSCode.
Things are currently working when I ...
2
votes
2
answers
285
views
How to enable hot reload for a Spring Boot container from within a DevContainer?
I'm editing the source code of a Spring Boot container (created using Docker Compose) from within a DevContainer that provides a Java development environment.
After editing the source code, I manually ...
0
votes
1
answer
524
views
Error when attaching vscode to running container
I'm using Visual Studio Code v1.100.1 with Docker Desktop 4.41.2 and the Dev containers extension v0.413.0.
I have four docker containers running locally and want to attach vscode to one of them.
The ...
0
votes
0
answers
23
views
How to use Dev Container service's Docker logs in Visual Studio Code Output tab?
I have a setup that has more or less the following:
devcontainer.json based on Docker Compose:
{
"name": "Frames API backend",
"dockerComposeFile": [
&...
1
vote
0
answers
53
views
Devcontainer can't reach Visual Studio Marketplace
I have the following devcontainer configuration:
{
"name": "[Dev] MyDevContainer",
"dockerComposeFile": ["../docker-compose-dev.yml"],
"runArgs&...
0
votes
0
answers
27
views
Port forwarded from ASGI server in devcontainer hangs on connection
I am running the following set up:
Running FastAPI server in a devcontainer via uvicorn src.main:app --reload --host 0.0.0.0 --port 13337
Forward the port using vscode's built-in port-forwarding ...
0
votes
1
answer
277
views
How to pass variables accessible from VsCode devcontainer.json to docker-compose.yml
In devcontainer.json we have access to these variables:
${localWorkspaceFolder}
${containerWorkspaceFolder}
${localWorkspaceFolderBasename}
${containerWorkspaceFolderBasename}
I have tried making ...
1
vote
1
answer
266
views
Why does Git in a Dev Container show old files as modified (even with no changes)?
I'm having a weird issue with Git inside a VS Code Dev Container: when I open a project folder, Git shows a bunch of already committed files as "modified" (even though I didn’t change ...
1
vote
0
answers
347
views
How to set up X11 forwarding for remote VS Code DevContainer?
I am running a vs code devcontainer on remote machine and trying to set up X11 forwarding.
I have 2 machines:
local machine on macOS
remote machine on Ubuntu
I have installed XQuartz on my Mac and ...
0
votes
2
answers
83
views
Migrate Docker build from GitHub to VS Code
I'm working on a project that has a build set up in GitHub Actions using Docker. I want to set up the same build on my local machine using VS Code. I created the .devcontainer directory and put the ...
4
votes
1
answer
294
views
VSCode Devcontainer with podman fails when mounting 'feature' with "bind mounts cannot have any filesystem-specific options applied"
My vscode developer container is failing to launch. The container builds fine but at the last step when vscode is adding in a 'feature' the mount for that step fails.
I'm using latest releases of ...
0
votes
0
answers
76
views
npm run dev command does not work via RUN/ENTRYPOINT/CMD in Dockerfile but works from terminal inside devcontainer
Strange one here that has been eating me alive for a solid 6 hours.
Dockerfile looks like this:
FROM mcr.microsoft.com/devcontainers/typescript-node:22-bullseye
WORKDIR /install
COPY /grcapp-vj/...
1
vote
0
answers
55
views
Keeping my nice vscode terminal in devcontainer
At work we've started using VSCODE devcontainers to manage development on multiple environments.
I've been struggling with an issue: the terminal opened by vscode in the devcontainer doesn't keep the ...
0
votes
1
answer
196
views
Rails devcontainer doesn't have ruby and bundler installed
I'm getting this error when trying to start the dev container.
[2025-03-19T16:39:10.740Z] Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime ...
1
vote
0
answers
289
views
How can I use android virtual device (or emulator) running on my windows host to run RN expo app in dev container?
How can I use android virtual device (or emulator) running on my windows host through Android studio's device manager to run my React Native RN expo app in dev container?
I'm developing my RN expo app ...
0
votes
0
answers
43
views
VS Code Runs differently on Windows and Unix using devcontainers and docker
I have a machine learning environment build as a Dockerfile image and as a prebuilt image for my Deep Learning class. That is, when I build my container, I commit it and push it to dockerhub. So I get ...
0
votes
0
answers
57
views
VSCode in Windows Docker User permission problem
I recently installed my VSCode and try to build the SourceCode which already containg a devContainer with a json file in it.
I thought its just a cakewalk, I installed the Extensions "Docker"...
1
vote
1
answer
43
views
Execute script after VSCode extensions has been installed
I use VS Code with devcontainer and various extensions that has an embedded JRE, one of which is redhat.java. I can tell this extension to use the system JRE in the devcontainer if it is new enough, ...
0
votes
1
answer
101
views
An error occurred while installing gem in a Dev Container of Rails
I am creating a brand new project on Rails using MySQL as the database.
To set it up, I first installed rails-new from https://github.com/rails/rails-new?tab=readme-ov-file#installation
Then ran rails-...
1
vote
1
answer
352
views
CLI `code` command to attach VS Code to a running container on a remote SSH host (Dev Containers over Remote - SSH in VS Code)
Assuming there is an actively running container on the remote host.
Here is the GUI process I'd like to replicate with a single CLI command:
(setup) Open New VS Code Window, Connect to Host... (...
0
votes
1
answer
33
views
Attach to a container + auto install plugins
I'm having an issue to setup correctly my project. I have a docker-compose, that I must launch using a custom bash function to create some files and setup the environment. When the containers are ...
0
votes
0
answers
73
views
microcks Invalid response size
I'm trying to set up microcks-uber to help with our integration testing locally. I've set up the containers, using VSCode devcontainers like so:
microcks:
image: quay.io/microcks/microcks-uber:1....
0
votes
0
answers
28
views
Create a subfolder in a Docker container, without it being created on the host machine? [duplicate]
I have a project folder (MyDestProject) in a docker container, mapped as a bind to a project folder on my host machine (MySourceProject).
I want to be able to create a subfolder (MyDestProject/...
0
votes
0
answers
338
views
Migrating to podman from docker using vscode devcontainer
Getting an error running project using podman on vscode
Project Structure
projectname
|
|----.devcontainer
| |
| |-----devcontainer.json
| |-----docker-compose.yml
| |-----...
0
votes
0
answers
145
views
VSCode devcontainer docker login Error: Cannot perform an interactive login from a non TTY device
I'm running some devcontainers in VSCode. Some are able to login to my docker registry and some aren't and I cannot work out what the difference is.
On the command line in a VSCode terminal I enter
...
0
votes
1
answer
713
views
PODMAN pull errors out stating image not known
I am trying to pull an image that exist with the tag specified
https://mcr.microsoft.com/en-us/artifact/mar/devcontainers/python/tags
but getting an error :
podman pull mcr.microsoft.com/devcontainers/...
1
vote
0
answers
227
views
VS Code multi-container dev containers - rebuild and reopen wrongly rebuilds other services
To set a simplified scene for my question I will have three compose services: an API server, a site server (for serving browsers the webpage), and a supporting Redis service. The project has the ...
0
votes
2
answers
201
views
The Ruby LSP VS Code extension isn't picking up env vars in my launch config that override compose.yml. Why, and what can I do?
I've set up a devcontainer in a Visual Studio Code Ruby project, and the launch configurations don't seem to be able to override environment variables from the devcontainer. I set up the devcontainer ...
0
votes
1
answer
155
views
VSCode devcontainer workflow and file organization: best practice to build "production container"
I have a Python project that I am developing inside a devcontainer. The source code tree looks like this:
---.devcontainer
|--- .devcontainer.json
|--- Dockerfile
|--- requirements.txt
-...