-
Notifications
You must be signed in to change notification settings - Fork 99
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
Encountered error [rootlesskit:parent] error: failed to start the child: fork/exec /proc/self/exe: operation not permitted
when build the docker image
#425
Comments
Commonly, this problem ocurre when the value of But I did set the |
I am facing exactly the same issue trying to build rootless dind container (with Docker version 24.0.9, build 2936816) on Github Actions (ubuntu-22.04) runners using debian-stable base image. Things were working fine until beginning of last week, now suddenly same build scripts fail with this error. Running |
I tried different versions of rootlesskit (2.0.2, 2.0.1, 1.1.1) all fail now with I also read that AppArmor can be the reason for the error: https://discuss.linuxcontainers.org/t/rootless-docker-on-new-ubuntu-kernels-does-not-work/18708 However when I disabled and even when I removed AppArmor the build still fails with |
@sebthom Thank you for your response.
I reproduced the same behavior when I tried Upon investigation I noticed that a new version of diff --git a/rootless-docker/Dockerfile b/rootless-docker/Dockerfile
index be8105d..fc7cacd 100644
--- a/rootless-docker/Dockerfile
+++ b/rootless-docker/Dockerfile
@@ -30,7 +30,9 @@ RUN install -m 0755 -d /etc/apt/keyrings; \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update && apt-get upgrade -y; \
- apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
+ apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
+
+RUN apt-get install -y docker-ce-rootless-extras=5:25.0.3-1~ubuntu.22.04~jammy --allow-downgrades rootlesskit version is
I assume from the above that there has been some change in package of |
Pinning the previous version also works on Debian |
Yes, I would also try to avoid the error by this workaround. |
This might be related to AppArmor (at least in my case) so need to add an exclusion for AppArmor service (stopping/disabling the service didnt worked out for me)
|
We are also seeing this issue. Started seeing it on March 7th shortly after 2.0.2 was released. It looks like 2.0.2 added a check that rootlesskit works to dockerd-rootless-setuptool.sh: https://github.com/moby/moby/blob/b32cfc3b3a9d791ed3924ab168f27962dceec949/contrib/dockerd-rootless-setuptool.sh#L273C2-L278C4. Is it possible that rootlesskit can't run successfully outside a privileged container, e.g. in a docker build? |
|
@DenisBalan's suggestion fixed it for me, but now I have a different error presumably needing a different AppArmor permission?
Is there a complete list somewhere @AkihiroSuda (I see you authored the hint Denis linked to above)? This is running:
This worked fine in Github's ubuntu-24.04 runners, but with 'Ubuntu 24.04 by Arm Limited' for a larger (and aarch64) runner it needed the app armor policy above and slirp4netns & uidmap explicitly installed to get as far as the error above. |
Hi, I'm using rootless docker for use Docker in Docker (DinD). I need a hand with an error like the titile.
What happened?
We are using the following Dockerfile (and entrypoint), but the build has not been going through in the last week or so.
(In other words, the build was working correctly until last week)
The
rootless_entrypoint.sh
is below.The error message is as follows:
Environment
Build machine: Mac Studio Apple M2 Ultra
OS: macOS 13.6
Docker: Docker version 25.0.3, build 4debf41
What do I do to solve this problem?
The text was updated successfully, but these errors were encountered: