-
Notifications
You must be signed in to change notification settings - Fork 5.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
Failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed #8449
Comments
I'm using Docker Desktop 3.5.2 on macOS 11.5.1 (Intel hardware). I just ran into this today (recently cleared out my local images so I was rebuilding from scratch). It kept looking on docker.io for what were clearly local images I was in the process of trying to build, then failing with:
Under Experimental Features "Use Docker Compose V2" was selected. I deselected that, restarted Docker, and after that The man page at https://docs.docker.com/compose/cli-command/ states that V2 is in beta and that they I think this has been set for a while now but I didn't notice this sooner because I'd already built my app at least once before and that local image was already present - til I wiped everything today, that is. |
Looks like I already had V2 disabled, then I tried to use image when enabled then again when disabled - nothing changes:
It still tries to load local image from docker.io. |
This seems to be related to me having M1 Macbook. I am running same build command on windows WSL just fine. |
After reading comments from @ndeloof on the #8538 here is what I have found:
|
This is indeed a buildkit limitation. cc @tonistiigi |
I'm also hitting this on windows all the sudden, docker desktop 4.0.1, engine 20.10.8 compose 1.29.2. Is there a work around? |
Hit me too on a new machine even though I know I didn't opt in to their broken docker-compose 2.0 beta. Sure enough, I'd been opted in at some point without my consent. Unchecked the option in the dashboard and it worked fine. |
This issue depends on docker/buildx#447 applies both on Docker Compose V2 and V1 as long as Buildkit is enabled (which is set by default on Docker Desktop) |
|
I ran in to this issue this morning (setting up a new machine). Disabling the Docker Engine "buildkit" feature works for now: "features": { |
I can confirm this works for MacBook air M1. Thanks! |
Can also confirm this works on my Macbook Pro M1. |
|
MacBook Pro (14-inch, 2021) with Apple M1 Pro chip |
50/50 for the
|
For me worked on m1 chip add arch |
Worked for me on MacBook Pro with M1 pro chip. Thanks. |
Ahhhhhhh, @Artem-Haholkin-deepsee got me working. I built a local image using |
with CLI also can use: |
Windows 10 Enterprise Docker hangs - had to uninstall it. |
None of these worked for me on MacBook Pro 2021 with M1 Max |
Tried setting to false to no avail. System: Config: {
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"debug": false,
"experimental": false,
"features": {
"buildkit": false
},
"insecure-registries": [
"..."
],
"registry-mirrors": []
} |
Also a M1 user, None of the solution above helped me either, still getting |
this is a new issue of docker desktop, on M1, I try to build it on my windows machine is work well |
Disabling buildkit as shown above/below worked for me:
System: |
It helped me to solve same problem on Docker v20.10.21 on ThinkPad/Win10 :-) |
it also happned to me. i used "docker-compose" instead of "docker compose" to walk around this issue. this error only happens if I am building for the first time, if i am doing a rebuild, it won't happen. I believe this is a bug |
I'm closing this as it seems to be a BuildKit issue. As mentioned before, to run Compose V2 without BuildKit (with the classic builder), you can set |
Just a reminder to anyone coming here with this error: this could also be a legitimate case of the wrong tag in a custom image's eg |
"features": {
"buildkit": false
} in daemon.json doesn't seem to work for me. |
works for me as well |
+1 to The features": {
"buildkit": false did nothing for me either. Closing the issue here looks like a lazy thing to do when it's caused by this very own software. |
For me, I was updating |
windows 10 home + docker desktop 4.17 |
add --platform=linux/amd64 works for me |
v20.10.24 Docker Engine on Mac M1: |
setting this and im prompted with the following when trying to rebuild the container. it doesnt seem to want to use my docker file specified in the devcontainer.json..and instead prompts me to select an image |
Hi!
Description of the issue
I recently updated docker and after update it seems that Dockerfile cannot use local images anymore. I have this instance:
Which is later used by another service in Dockerfile using
FROM services_develop:staging
. Prior update it was working just fine, now only option seems to be to create a local registry. Is this really intended?Context information (for bug reports)
Output of
docker-compose version
/!\ If
docker-compose version
reports v2.0...` you're using the wrong repository, please report issues on Compose-CLIOutput of
docker version
Output of
docker-compose config
(Make sure to add the relevant
-f
and other flags)Steps to reproduce the issue
docker-compose up --build build
Observed result
Fails to run
Expected result
Container is run
Stacktrace / full error message
Additional information
Macbook Pro M1, MacOS 11.4.
The text was updated successfully, but these errors were encountered: