Skip to content

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

@CezaryKlus

Description

@CezaryKlus

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions