-
Notifications
You must be signed in to change notification settings - Fork 785
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
Image build with secret mounts stopped working v1.32 #5185
Comments
@flouthoc PTAL |
@JustKiddingCode Could you please try upstream version of buildah |
Still same issue with:
|
I'm also experiencing this issue, it seems Buildah 1.32.0 does not have this issue while 1.32.2 does. Which would point to #5083 being the cause of this regression. Command to reproduce the error locally: podman run --rm -it --device /dev/fuse -v ./Dockerfile:/Dockerfile:ro quay.io/buildah/stable:v1.32.2 \
buildah build --secret id=Test1,src=Test1,type=env --secret id=Test2,src=Test2,type=env |
Is there any progress with this? This is still an issue for us which forces us to keep using buildah 1.31. |
I can also confirm the same failure message, running buildah 1.33.7. |
I put up #5544 which has an attempt at fixing this along with a test that reproduces the issue. |
Description
We have a gitlab-ci with a gitlab-runner (running with podman). The runner has
CAP_SYS_ADMIN
privileges.Building the containers worked for buildah version from 1.29 to 1.31 but stopped working with buildah 1.32.
The CI fails with:
error running subprocess: remounting "/var/tmp/buildah4082641103/mnt/rootfs/run/secrets/Test1" in mount namespace with flags 0x1 instead of 0x0: operation not permitted
Steps to reproduce the issue:
Describe the results you received:
Buildah fails with
error running subprocess: remounting "/var/tmp/buildah4082641103/mnt/rootfs/run/secrets/Test1" in mount namespace with flags 0x1 instead of 0x0: operation not permitted
Describe the results you expected:
Buildah builds image like v1.31 without failing.
Buildah information
The text was updated successfully, but these errors were encountered: