Skip to content

rootless dind does not work on Docker for Windows #4627

@viceice

Description

@viceice
  • 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:dind-rootless --experimental
...
[rootlesskit:child ] error: executing [[ip tuntap add name tap0 mode tap] [ip link set tap0 address <MAC>]]: exit status 1

Minimum reproducer:

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

Problem /dev/net/tun is not readable by rootless user. Other users should have read-write permission.

Information

  • Windows Version: 10.1903.18362.267
  • Docker for Mac 2.1.0.1 (37199) (Docker 19.03.1)

Reference

docker-library/docker#174
docker/for-mac#3838

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