Skip to content

Running multiple devcontainers with docker-in-docker in parallel fails, need unique volume name #5679

Closed
@berndku

Description

@berndku

A single devcontainer with docker-in-docker is running fine. If opening a second devcontainer with docker-in-docker on the same host in parallel, docker execution fails in the 2nd container.

  • VSCode Version: 1.60.2
  • Local OS Version: Windows 10 Pro 10.0.19042
  • Reproduces in: Remote - Containers
  • Name of Dev Container Definition with Issue: Docker-in-Docker

Steps to Reproduce:

  1. Open devcontainer with docker-in-docker definition in first instance of VS Code
  2. Run "docker ps" --> CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES --> works
  3. Open a second VS Code instance and let the first VS Code Window continue to run in parallel.
  4. Open a second devcontainer with a Docker-in-docker definition in the second instance of VS Code
  5. Run "docker ps" --> Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  6. If closing the first VS Code instance and rebuilding the second, then docker-in-docker works on the second instance.

Metadata

Metadata

Assignees

Labels

containersIssue in vscode-remote containersfeature-requestRequest for new features or functionalityplan-reviewPM-highlighted item determined to be P1 or P2

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions