-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman build via stdin fails in remote rootless #17495
Comments
@sstosh I'm able to almost able to reproduce your report. I have isolated my problem to podman machine or podman's To reproduce: On Linux with podman 4.3.1, this works fine for me:
However, if I create a podman machine and talk to it instead, it fails:
|
I noticed a possibly related issue on my mac when I have visual studio code running (addmittedly in an oddly installed way). My mac would mount the 'Visual Studio Code.app' as a filesystem mount, then for some reason
My next hypothesis is that podman build is enumerating all mount points and attempting to read the files in every mount point. I think when no context is provided, I test this hypothesis by comparing a build step with and without context, when giving Without context:
With context of "." (current directory):
When context is set to So what does the strace look like? Well... it's quite busy:
Without context, podman does ~800 more file-related syscalls. Looking at just |
Fixes: containers#17495 Signed-off-by: Daniel J Walsh <[email protected]>
Issue Description
Image build with
podman-remote build -f -
via stdin in remote rootless is faileddue to permission denied.
Maybe related to #17480.
Steps to reproduce the issue
libpod_lock
, e.g.# podman ps
podman-remote build -f -
via stdinDescribe the results you received
See above.
Describe the results you expected
Image build via stdin succeeds.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
KVM
Additional information
podman-remote build -
succeeds the image buildpodman-remote build -f -
succeeds if removelibpod_lock
.The text was updated successfully, but these errors were encountered: