-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't switch between containers using docker-compose.yaml #9435
Comments
@raulbocanegra https://github.com/devcontainers/features/tree/main/src/common-utils lists the option as |
Hi @pjonsson and thanks for pointing that out. Either with "user" or "username" the user in the container is correctly created. It only fails when trying to switch between containers. I can build both containers and use them but without switching. |
It is like devcontainer features only got installed on the first container you choose when opening the project. So if you switch from one to another the common-utils feature has not created the user. |
This is expected. Only one of the compose services is built as dev container. |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
This feature request has not yet received the 10 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation. Happy Coding |
🙁 In the last 60 days, this feature request has received less than 10 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
I have a repo with 2 devcontainers using docker-compose.yaml.
The structure is something like:
VSCode Version:
Version: 1.85.1
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:47:11.635Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
Local OS Version: Linux x64 amd64
Remote Extension/Connection Type: Containers
Logs:
Steps to Reproduce:
The
docker-compose.yaml
:For the the
devcontainer.json
I use the following two:.devcontainer/python2/devcontainer.json
:.devcontainer/python3/devcontainer.json
The
Dockerfile
to build both images is:Python3 is same image but using python devcontainer feature to install python3.10
The text was updated successfully, but these errors were encountered: