-
Notifications
You must be signed in to change notification settings - Fork 482
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
-o=.
: open $HOME/.local/share/docker/overlay2/066f6../work/work: permission denied
#2219
Comments
Looks like you are trying to write full container rootfs (or maybe even docker state directory, unclear what the working dir in your example is). This likely contains many system files and files that require specific permissions, and you don't have permissions to create such files on the client side. There is almost never a valid use case to export full container rootfs (1.4GB) like this. If you want to export the files as one squashed bundle instead of exporting image you should use |
Ok so
However I'm not sure I understand the other elements of your response:
Please clear up these points :) Note: using
IMO the issue I describe is a bug (it used to work!) BUT I'm nozing that my install may be the culprit. |
Coming back to this with a solution: I changed the output directory to a folder that only contains subpaths that my user can browse without permission issues. I can probably investigate more. e.g. a @tonistiigi I was writing a |
Contributing guidelines
I've found a bug and checked that ...
Description
Running plenty of jobs with
build --output=$DIR ..
whileDOCKER_HOST=ssh://..
is set on a rootless client, executing the jobs on a (non-rootless) buildx remote, I often getexport
errors:Expected behaviour
I expect the final export to properly download a non-zero sized file back to my buildx client.
Actual behaviour
The whole download happens (progress is shown but
export
fails right at the end, due to wrong permissions under$HOME/.local/share/docker/overlay2
Buildx version
github.com/docker/buildx v0.12.1 30feaa1
Docker info
Builders list
Configuration
Build logs
Additional info
The last folder in the path it errors on is
world-unreadable
:ls -lha /home/pete/.local/share/docker/overlay2/066f68c9865b9483974c0ae79d3681c48f6e90eaaf2dc1b5de124591945590e9/work/ total 12K drwx------ 3 pete pete 4.0K Jan 26 18:24 . drwx--x--- 4 pete pete 4.0K Jan 26 18:25 .. d--------- 2 pete pete 4.0K Jan 26 18:24 work
The text was updated successfully, but these errors were encountered: