-
Notifications
You must be signed in to change notification settings - Fork 286
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
features not enabled for devcontainer started indirectly from docker compose #546
Comments
Hi @arafubeatbox |
Hello @gauravsaini04 Steps to reproduce
noteIf you choose sub-app as the first container to open (the first container to create) in step 3, then the result would be the opposite: sub-app has node installed and main-app doesn't. |
This is a limitation of the spec. Only a single devcontainer.json is considered at a time and its container will get the dev container treatment when using Docker Compose. |
I see, thanks for recognizing and putting the issue in the right place! |
prerequisites
I have two devcontainers configured in a single repository, based on https://code.visualstudio.com/remote/advancedcontainers/connect-multiple-containers.
Both devcontainer.json files are pointed to a single docker-compose.yml, so when I create one of the devcontainers via vscode, the other also gets created. I switch between the containers during development using the
Dev Containers: Switch Container
vscode command.Both devcontainers have their own features configured.
the problem
Only the container that I first create via vscode (which container to choose is irrelevant) has features enabled, and when I switch to the other container, it does not have any of the features enabled.
The text was updated successfully, but these errors were encountered: