Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

docker-container driver fails when user namespace remapping is enabled on the Docker daemon #461

Closed
haines opened this issue Dec 3, 2020 · 0 comments · Fixed by #462
Closed

Comments

@haines
Copy link
Contributor

haines commented Dec 3, 2020

The buildkit container runs in privileged mode, so it also needs to be started with --userns=host:

#1 [internal] booting buildkit
#1 sha256:97023cbcc7f7cebc6f6811642732a0b8ce3ed930fa35e6a02ab46a98fb9f43ab
#1 pulling image moby/buildkit:buildx-stable-1
#1 pulling image moby/buildkit:buildx-stable-1 2.8s done
#1 creating container buildx_buildkit_ocean done
#1 ERROR: Error response from daemon: privileged mode is incompatible with user namespaces.  You must run the container in the host namespace when running privileged mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant