Closed diegosiao closed 7 months ago
@vrothberg @mtrmac PTAL
failed to fetch anonymous token
is not a string that exists in Podman; it does exist in Docker, and maybe in docker-compose
itself (I didn’t check that one in detail, but it seems to call the same dependencies.)
So, to the extent that this is a registry client using the HTTP API incorrectly/incompatibly, my first guess is that Podman is not involved at all / can’t affect that implementation. (I didn’t try actually reproducing this, though.)
The registries information are on podman side. The token URL is not built by podman and forwarded to docker-compose?
No.
It is hard to make sense of this information. Docker compose works fine with docker daemon, but not with podman :(
Any workaround/suggestion?
Can you share an exact reproducer? I am sure we'll get to the bottom of it.
Thank you @vrothberg, appreciate your help! I would be happy to share a reproducer, but doing that will require sharing an image on Oracle Cloud private registry, so I will try to setup a personal account there and everything required to reproduce this error.
A friendly reminder that this issue had no activity for 30 days.
Given there was no reproducer shared and the error message does not seem to be from podman, closing
Issue Description
Running any
docker-compose
command that requires image pulling causes the error below:IMPORTANT: I noticed that the URL parameter
scope
is duplicated, taking the URL output on error and removing the firstscope=%3A%3A
parameter from it gives me a SUCCESSFUL 200 response like:curl "https://iad.ocir.io/20180419/docker/token?scope=repository%3Acompartment%2Frepo%2Fimage%3Apull&service=iad.ocir.io"
Response (the token is redacted):
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
failed to solve: iad.ocir.io/compartment/repo/image:tag: failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://iad.ocir.io/20180419/docker/token?scope=%3A%3A&scope=repository%3Acompartment%2Frepo%2Fimage%3Apull&service=iad.ocir.io: 400 Bad Request
Describe the results you expected
A successful
docker-compose build
execution.podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting