Remote development cannot abide multiple remote containers defined in compose files with the same service name running simultaneously #5716
Labels
containers
Issue in vscode-remote containers
info-needed
Issue requires more information from poster
I have two different remote development environments. Each environment spins up a remote development container according to a
docker-compose.yaml
referenced in thedevcontainer.json
declaration. Both compose files specify the deployment of the container under a service calledvscode
.Spinning up either on their own works fine. However, if one is running, vscode will fail to spin up the second. This is because instantiation attempts to find running instances of an environment with the following command:
which obviously can't tell the difference between the two containers.
The totality of the documentation that I have found on this subject is here: https://code.visualstudio.com/remote/advancedcontainers/connect-multiple-containers.
How can I add additional metadata to each of these declarations that will be used by remote containers to distinguish between the two? If I can't I would suggest that this is a bug-- that all projects shouldn't share the same implicit namespace for their services.
Environment details:
The text was updated successfully, but these errors were encountered: