cli icon indicating copy to clipboard operation
cli copied to clipboard

Docker Compose configuration does not work with Repository configuration folders upon "Clone Repository... Named Volume"

Open CezaryKlus opened this issue 4 months ago • 1 comments

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

Image

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

Image

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.

CezaryKlus avatar Sep 14 '25 10:09 CezaryKlus