132 questions
1
vote
1
answer
99
views
PhpStorm devcontainer on PHP base image
I already have a complex VS Code devcontainers implementation with a lot of customization, but I'm struggling to make it even start on PhpStorm. If I use the official mcr.microsoft.com/devcontainers/...
0
votes
0
answers
129
views
Docker outside of docker in devcontainer on WSL
How to properly mount devcontainer localWorkspaceFolder from WSL as workspace so "docker outside of docker" works in Intellij IDEA? :D
I have a project in WSL opened in IntelliJ IDEA and ...
1
vote
0
answers
104
views
Flutter DevTools fails to connect from host when app runs in VS Code devcontainer
I'm developing my Flutter app inside a vscode devcontainer, and everything is working except the devtools.
The "Dart DevTools" page comes up on my host PC, but it can't connect to ws://127....
2
votes
0
answers
221
views
How to install Playwright and Artillery in the official JavaScript DevContainer (bookworm-24)?
I’m trying to set up a DevContainer environment based on mcr.microsoft.com/devcontainers/javascript-node:24-bookworm that includes:
Artillery (performance testing),
Playwright test runner, its ...
-2
votes
1
answer
111
views
Postgres Docker container not shutting down from vscode Rebuild command [closed]
I have a very simple Docker project setup with a vscode devcontainer.
There are two Docker containers, dev and db
This works! I open the project in the devcontainer and everything works fine, until i ...
0
votes
0
answers
86
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
36
views
dat-power extension is failing and stall sin a devcontainer
I am running a devcontainer on my windows machine using ubuntu as the WSL bistro. When I click the dot Power User extension - it's just loading constantly (the little blue line in the image moves from ...
1
vote
0
answers
224
views
Building devcontainers with Rider 2025.2 and ASP.NET Core
I built a devcontainer on Windows, via Rider 2025.2, and I could run it and launch the rider IDE then load the project.
When I build or restore nuget packages in the project, using dotnet command, I ...
1
vote
1
answer
262
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
114
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
248
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
1
answer
234
views
How do I add a postgres database and user from a docker container using docker-compose?
I am trying to create a devcontainer that uses docker files for two processes.
One is a nodejs server - it works
One is a postgres DB - it is not creating the user or the table
This is the error I am ...
0
votes
1
answer
382
views
devcontainer features dependencies overrides Docker commands
I am trying to configure a new Rails application using devcontainer and this is my Dockerfile at .devcontainer file:
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
ARG RUBY_VERSION=...
0
votes
1
answer
863
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
336
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 ...
2
votes
0
answers
181
views
My VSCode DevContainer.json w/ docker-compose.yml is not interpolating VSCode variables
Code samples provided below.
I use VSCode on my M1 Macbook Pro and am setting up a DevContainer.json which launches a docker-compose.yml. I am trying to interpolate an env var in docker-compose.yml ...
0
votes
3
answers
289
views
Get host group id in Dockerfile
In scholar project, we use DevContainers to share same dev environment (for Symfony api):
{
"name": "M2 Symfony CI/CD",
"build": {
"dockerfile": "...
0
votes
1
answer
107
views
Visual Studio unable to find npm and fails change of target system to dev container
I'm getting the following error when I try to open a dev container in VS 2022:
Failed to change target system to '[Dev Container]': Unable to find 'npm'. Please install it and try again.
This is the ...
0
votes
1
answer
344
views
Unable to Access App in Browser When Using Devcontainers in Rider with .NET and Vite - Why?
I'm using devcontainers in JetBrains Rider to run my app, which includes:
A .NET server backend.
A Vite frontend.
Everything appears to run correctly inside the container, but I can't access the app ...
6
votes
0
answers
523
views
Can't build/open in devcontainer in VSCode/Ubuntu due to lstat failure during docker build
I ma trying to open this repo in devcontainer using VSCode running on Ubuntu, but it fails for some strange reason:
mcr.microsoft.com/vscode/devcontainers/java:11
[6654 ms] Start: Run: docker buildx ...
0
votes
1
answer
230
views
Laravel sail and devcontainer - volume option not mounting files
I have been trying to use devcontainer with laravel sail. Im using docker desktop for windows and WSL2. Im using this method of installing vendor assets.
I have added this example to a script and run ...
5
votes
1
answer
332
views
Unable to rebase git repository when running inside a devcontainer
Whenever I try to rebase within a devcontainer running on a Mac, I get the following error:
vscode ➜ /workspaces/project (feature/some-feature) $ git rebase main
error: Your local changes to the ...
1
vote
0
answers
325
views
How to use volumes inside Devcontainers
I'm learning devcontainers in docker and i have do this devcontainer.json :
{
"name": "Node Dev Container",
"dockerComposeFile": "compose.yml",
&...
0
votes
1
answer
633
views
DevPod desktop (macOS)... `fatal error retrieving container status: find dev container: docker ps: exec: "docker": executable file not found in $PATH`
PROBLEM
Pullin’ me hair out. DevPod desktop on macOS 15.1 won’t fire up. I'm getting this error...
fatal error retrieving container status: find dev container: docker ps: exec: "docker": ...
1
vote
0
answers
264
views
VS Code remote dev container using docker-compose and Dockerfile : cannot locate Dockerfile
I am trying to build the simplest remote dev container through VS Code using docker-compose and a Dockerfile.
.devcontainer/devcontainer.json
{
"dockerComposeFile": "docker-compose....
2
votes
2
answers
828
views
How can I create a Dev Container for a .NET Framework 4.8 project with SQL Server and Microsoft Sync Framework?
I am working on a project that uses:
.NET Framework 4.8
SQL Server
Microsoft Sync Framework
I am trying to set up a Dev Container for this project using Docker and Visual Studio Code, but I haven't ...
0
votes
1
answer
213
views
Vscode devcontainers: is there something like 'global' extensions?
Ive been using vscode and devcontainers for a while now, and i really like the workflow.having specific extensions indtalled, based on a specific environment is great, especially because i need to use ...
0
votes
1
answer
150
views
How can I commit a de facto .devcontainer folder while still allowing customization?
I would like to create a .devcontainer folder with the json definition and Dockerfile and commit it to my repository to be the de facto development environment. However, I understand folks like to ...
0
votes
1
answer
637
views
Prevent VSCode from pulling during devcontainer build
When using devcontainers in VSCode, I see that the command for building the image always includes the '--pull' directive.. But what if I want to use a fully local base image?.. What if I don't want it ...
0
votes
1
answer
2k
views
devcontainer error mount config is invalid
I am building golang project with devcontainer, it run good when using .devcontainer.json file until when I want to add some container as a service using docker-compose. It always complaining about ...
0
votes
1
answer
1k
views
How to setup Quarkus for devcontainers, quarkus:dev and micro services?
I have a maven multi-module project that uses Quarkus. Something like:
<project>
<modules>
<module>web</module>
<module>customer</module>
<...
0
votes
1
answer
152
views
How to share the volume created by 'Dev Containers: Clone Repository in Container Volume...'
I'm building a devcontainer setup for a webapp which uses docker-compose to fire up multiple services. I'd like to be able to add a service (webpack) to support hot-reloading to my docker-compose.yml ...
1
vote
1
answer
473
views
Pylance missing imports with DevContainers
I have the following folder structure
C:.
│ docker-compose.yml
│ Dockerfile
│
├───.devcontainer
│ devcontainer.json
│
└───app
__init__.py
main.py
sub.py
Dockerfile
...
0
votes
0
answers
2k
views
Getting permissions errors when running dev container with podman
I am trying to launch a simple dev-container:
using wsl on windows
running ubuntu 24.04 LTS
podman version 4.9.3
with the following:
devcontainer.json
{
"name": "Ubuntu",
&...
0
votes
1
answer
1k
views
How to use "Dev Containers: Clone Repository in Container Volume" in VS Code using a github repository without devcontainer.json file in the repo?
What I did:
Create a github repository in advance
Open github repo using "Dev Containers: Clone Repository in Container Volume" command
Select a container configuration template (I select ...
1
vote
0
answers
303
views
How to use odoo:17 Docker image in devcontainer?
I am trying to create a devcontainer for the development of custom Odoo modules. This devcontainer is based on the official odoo:17 Docker image. You can see the current state of my devcontainer in my-...
2
votes
1
answer
263
views
In js running in a devcontainer, how can I copy something to the host clipboard?
My objective is to run a node.js CLI inside my devcontainer. I want to copy some text to the host clipboard inside the container.
This was super simple before running in a devcontainer, because on Mac ...
0
votes
2
answers
118
views
How can I give a containerRegistry to a DevcontainersCi task in an Azure DevOps YAML Pipeline?
How can I give a containerRegistry to a DevcontainersCi task in an Azure DevOps YAML Pipeline, like in a Docker@2 task?
Currently pushing from this task fails, apparently due to missing authentication ...
0
votes
1
answer
375
views
running java tests in devcontainer with selenium grid
I am trying to setup a devcontainer for Java based automation testing with Selenium Grid.
So far I have the docker-compose-v3.yml from https://github.com/SeleniumHQ/docker-selenium/blob/trunk/docker-...
0
votes
1
answer
487
views
Error: mkdir Cannot Create a File When That File Already Exists in Docker with VS Code Dev Containers
I'm looking for solutions or guidance to resolve this error. Any help or suggestions would be greatly appreciated!
To be honest, it is disaster for past two days to fix it.
I'm encountering an issue ...
0
votes
1
answer
75
views
Advice needed on devcontainer standards
We are working on using devcontainers across multiple repositories that are interdependent (legacy projects we're trying to enhance for better local development).
Devcontainers seem like an excellent ...
1
vote
0
answers
396
views
gRPC in container is not working - and yes, I am exposing and enabling the needed ports
I have a .Net API program named "myservice" that provides an API via gRPC on port 5053 and a video stream via RTSP on port 8554.
When I run the program from the command line with 'dotnet ...
0
votes
1
answer
366
views
Is there a way to create a development environment with a Dockerfile on VS Code for IAR toolchain?
I am a complete beginner at writing dockerfiles and creating dev containers. I want to create a devcontainer that can be shared and used by anyone on my team that uses the IAR compiler/toolchain on ...
1
vote
1
answer
1k
views
How to open the host's browser automatically after Dev Container startup in VS Code?
I'm using the VS Code Dev Containers extension (v0.362.0) to do my development work. I would like to automatically open a specific website in the host's web browser after the container has started up.
...
1
vote
1
answer
792
views
Docker & Nextjs - ECONNREFUSED 127.0.0.1:<random port> after Docker Desktop update
after updating Docker Desktop (on latest macOS) from 4.29 to 4.30 we've started experiencing ECONNREFUSED errors on random ports when trying to develop our Nextjs 13 app.
We use devcontainers for the ...
1
vote
0
answers
147
views
Port is being added twice to Microsoft dev tunnel in VsCode with absolute URLs
I am working with the NextJs framework, where I have a link that redirect the users to it in my App. The link works well with the local machine, yet when I use the de tunnel, it adds the port twice to ...
0
votes
0
answers
966
views
Error when starting devcontainers in VSCode
I am using devcontainers for a project in vscode with WSL, since yesterday I got an error that doesn't let met to start the devcontainers.
The error in log shows that when trying to get the content of ...
2
votes
1
answer
6k
views
devcontainer docker-compose best practice
I have an existing Django project using docker compose and I am trying to add devcontainer support. I have it mostly working except there is still one thing that is bothering me.
In my docker-compose....
0
votes
1
answer
210
views
Unhandled error when running vitest in DevContainer
In my company we moved to DevContainer. I had few PACT test that I am running with vitest.
Theses tests are run and pass in local environment but as soon as I moved to DevContainer I am getting the ...
1
vote
1
answer
338
views
DevContainer attatch to new image container in vscode?
I use wsl environment and vscode editor.I reopen project in devcontainer and make some changes to current container,so I use docker commit to create a new image.But current container is still use ...