I want to specify the Docker Compose-based spec for the devcontainer in a separate folder as here:
https://code.visualstudio.com/docs/devcontainers/create-dev-container#_alternative-repository-configuration-folders
However, docker-compose.yml
(and any other file except the devcontainer.json
) does not seem to be copied to the intermediate container (?) when I perform
stat /tmp/devcontainer-config-063e7fed-81a8-4bc3-beb2-0be1eee8514c/.devcontainer/docker-compose.yml: no such file or directory
The only file referenced from the "host" is --id-label devcontainer.config_file=...devcontainer.json
devcontainer.json
is pretty standard:
"name": ".NET 8 Multi-Container",
"dockerComposeFile": "docker-compose.yml",
"service": "dev",
"workspaceFolder": "/workspace",
"features": {
},
So the Repository configuration is correctly picked up but the Docker compose in this scenario does not work.