Issue:
When attempting run rootless DinD on macOS, the container is unable to spawn Docker containers inside it because it is unable to connect to the Docker Daemon.
Expected Result:
The DinD container should be able to spawn new containers inside it without issue. Docker and Docker-Compose should work without fail.
Config:
- M1 Max Macbook Pro
- Docker Desktop v4.27.1
- Docker Engine v25.0.2
Steps to Reproduce Issue:
- Have the setup above.
- Execute:
docker run --privileged --name some-docker-test -d \ docker:dind-rootless --experimental
- Execute the following to get inside the container:
docker exec -it <container hash from step 2> sh
- Execute
docker info and notice the message: ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Issue:
When attempting run rootless DinD on macOS, the container is unable to spawn Docker containers inside it because it is unable to connect to the Docker Daemon.
Expected Result:
The DinD container should be able to spawn new containers inside it without issue. Docker and Docker-Compose should work without fail.
Config:
Steps to Reproduce Issue:
docker run --privileged --name some-docker-test -d \ docker:dind-rootless --experimentaldocker exec -it <container hash from step 2> shdocker infoand notice the message:ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?