You need to sign in or sign up before continuing.
Docs feedback: Troubleshoot buildah: Error during unshare(CLONE_NEWUSER): Operation not permitted
-
Start this issue's title with Docs:
orDocs feedback:
.
Problem to solve
When setting up a gitlab-runner and using in the CI buildah to build a docker image the following error message occurs: Error during unshare(CLONE_NEWUSER): Operation not permitted
This is because some security options must be set (https://github.com/moby/buildkit/blob/master/docs/rootless.md#docker)
In the gitlab-runner config under the runners.docker section wether privileged = true
(not recommended) or security_opt = ["seccomp:unconfined", "apparmor:unconfined"]
must be set
This problem occurs also for docker buildkit rootless!
Affected links:
- https://docs.gitlab.com/ci/docker/buildah_rootless_multi_arch/
- https://docs.gitlab.com/ci/docker/using_buildkit/
Further details
Proposal
It would be nice if a comment in the troubleshooting section of those links can be added
Who can address the issue
Other links/references
Edited by 🤖 GitLab Bot 🤖