microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.72k stars 1.41k forks source link

Docker in Docker feature only accessible by single devcontainer at a time #1596

Closed templela closed 2 years ago

templela commented 2 years ago

Steps to Reproduce:

  1. Have 2+ devcontainers open with features: "docker-in-docker": "20.10"
  2. The first opened container will have access to docker, other instances will give you the standard Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? error.
alecdwm commented 2 years ago

Related to https://github.com/microsoft/vscode-remote-release/issues/5679

Chuxel commented 2 years ago

https://github.com/devcontainers/spec/issues/62 is the proposed fix for this. Closing as a dupe of that and https://github.com/microsoft/vscode-remote-release/issues/5679 just to consolidate conversation. (Since agreed it is it is important.)