Skip to content

rootless dind does not work on Docker for Mac #3838

@AkihiroSuda

Description

@AkihiroSuda
  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

Rootless DinD should work

Actual behavior

Rootless DinD doesn't work

$ docker run -it --rm --name dind --privileged docker:19.03.1-dind-rootless --experimental
...
[rootlesskit:child ] error: executing [[ip tuntap add name tap0 mode tap] [ip link set tap0 address <MAC>]]: exit status 1

originally reported in docker-library/docker#174 (comment)

Minimum reproducer:

$ docker run -it --rm --privileged docker:19.03.1-dind-rootless unshare -rn sh -c "ip tuntap add name tap0 mode tap"
open: Permission denied

Information

  • macOS Version: 10.14.6
  • Docker for Mac 2.1.10 (32760) (Docker 19.03.1)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions