-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unable to extract tar files on Ubuntu Noble #121
Comments
Celebrations may be premature as Docker BuildKit ignores the seccomp profile set on the daemon and instead uses the default profile at all times. Running the steps manually via |
We happened to talk thru this just now. Sharing the upshot, mostly just notes on stuff @mtelvers explained to me:
Along the way we also looked at |
Docker's default build,
Upgrade libseccomp2 >= 2.5.5 and upgrade Docker >= 25.0.3 |
On POWER9 and RISCV, we are unable to extract files from a tar file when using a Ubuntu Noble. Running the same commands using
ubuntu:jammy
works fine.This issue prevents the merging of ocurrent/docker-base-images#275, and the RISCV64 image builder here: mtelvers/docker-base-images#1.
Running
strace
shows the issue.The relevant part of the output shows
fchmodat2
returnedEPERM
.If you run
strace
without Docker you see a different behaviour:The problem can be attributed to Docker's seccomp profile. A quick work around is to invoke Docker without a seccomp profile. Like this:
docker run --rm -it --security-opt seccomp=unconfined ubuntu:noble
. With no profile,fchmodat2
returnsENOSYS
and tar works correctly.Armed with this investigation there are lots of related posts
Ultimately, the comment from here
and the reply, give us a solution.
Viz., the developers have resolved the problem with the release of
libseccomp
v2.5.5 and Docker 25.0.3+. However, on Ubuntu Noble, we have the right version oflibseccomp
, 2.5.5-1ubuntu3, but only Docker 24.0.7-0ubuntu4.We need to run Docker 24.0.7 with the updated seccomp profile from Docker 25.0.3:-
The text was updated successfully, but these errors were encountered: