Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Debian based docker:dind-rootless fails to start with error #271

Open
dg424 opened this issue Oct 8, 2021 · 4 comments
Open

Debian based docker:dind-rootless fails to start with error #271

dg424 opened this issue Oct 8, 2021 · 4 comments
Labels
question Further information is requested

Comments

@dg424
Copy link

dg424 commented Oct 8, 2021

Hi,

Please see the discussion here - moby/moby#42910 (comment). With the help of one of the contributors, I was able to create a debian based rootless image. Everything seems ok, except that the following error pops up on startup:

[rootlesskit:parent] error: failed to setup UID/GID map: newuidmap 42 [0 1000 1 1 100000 65536 65537 100000 65536] failed: newuidmap: write to uid_map failed: Invalid argument

@AkihiroSuda Thought I'd post this here since it no longer seems relevant to moby and they might not take any further action on the issue.

@AkihiroSuda
Copy link
Member

Please make sure to run the image with --privileged

@AkihiroSuda AkihiroSuda added the question Further information is requested label Oct 8, 2021
@dg424
Copy link
Author

dg424 commented Oct 8, 2021

Hi Akihiro,
Yes, here is the run:

$ docker run --rm -it --privileged --name dind-rootless -e DOCKER_TLS_CERTDIR="" -p 2375:2375 dind-rootless-debian
[rootlesskit:parent] error: failed to setup UID/GID map: newuidmap 32 [0 1000 1 1 100000 65536 65537 100000 65536] failed: newuidmap: write to uid_map failed: Invalid argument
: exit status 1

@dg424
Copy link
Author

dg424 commented Oct 10, 2021

I posted in Debian's shadow project and this is their response - shadow-maint/shadow#424 (comment)

@dg424
Copy link
Author

dg424 commented Oct 18, 2021

See here - shadow-maint/shadow#424 (comment). Had to comment out the following lines from this part of the rootless Dockerfile - https://github.com/docker-library/docker/blob/master/20.10/dind-rootless/Dockerfile#L19 and line 20. Debian Bullseye rootless boots up now.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants