Skip to content

DinD Rootless does not work on macOS: Daemon not found #418

Description

@Playjasb2

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:

  1. Have the setup above.
  2. Execute: docker run --privileged --name some-docker-test -d \ docker:dind-rootless --experimental
  3. Execute the following to get inside the container: docker exec -it <container hash from step 2> sh
  4. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions