Skip to content

Docs feedback: Troubleshoot buildah: Error during unshare(CLONE_NEWUSER): Operation not permitted

  • Start this issue's title with Docs: or Docs 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:

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 🤖