-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
open /.docker/.token_seed: permission denied #1936
Comments
Thanks for the report. How did you hit this? |
In my Dockerfile, the /.docker folder was created by root. (It was really created as a side effect of a |
I had the same error, though for me this occurs when accessing an image directly from docker hub using 'FROM ...'. Not sure it has anything to do with this, and the error disappears after i manually run a 'docker pull ...'. It is not limited to the image used here (alpine) but for everything. Is this happening for anybody else? I am on macOS Big Sur if that matters. |
I got same error. |
@tonistiigi I don't think this issue is fixed. The PR you linked seems unrelated. |
@rittneje maybe indeed. #1745 is also related. But if your issue is that something(not docker itself) corrupted your docker config and now it is unreadable to docker binary then there isn't really anything we can do about it. The config dir needs to be fixed. The PRs cover similar cases that could appear from system crashes or readonly volumes. As these are cases that can appear without explicit config directory corruption. |
My docker config was not corrupted. The uid running buildkit just does not have write permission to the directory. #1745 missed checking for |
Docker config is per-user. The user invoking docker should always have access to their own config dir. |
They should have read access. Needing write access outside |
I'm getting same error from Docker for Apple silicon. |
I had to manually pull the images like the user's mentioned here to fix the issue. I am on macOS Big Sur 11.5.1 and docker version 20.10.8, build 3967b7d. |
Faced the same issue so just added rw permission to the required files.
Not sure what's the impact of this but solved my error for now. |
@Cartmanishere
A safer option would be
|
I faced the same problem then prepended |
While testing out the 0.8.1 rootless image, I encountered the following build error:
From looking at the source code it appears that the token seed file logic is only checking against
syscall.EPERM
and notsyscall.EACCES
, so a permission failure is fatal. You should switch toos.IsPermission(err)
instead of usingerrors.Is(err, syscall.EPERM)
, since this will account for bothsyscall.EPERM
andsyscall.EACCES
.The text was updated successfully, but these errors were encountered: