image: error pushing image to authenticated repository
Pushing to docker.io/valentinrothberg/alpine:latest works fine the first time, but will break reproducibly for following attempts when the image already exists and fail with the following error:
Error copying image to the remote destination: Error trying to reuse blob sha256:7bff100f35cb359a368537bb07829b055fe8e0b1cb01085a3a628ae9c187c7b8 at destination: Error checking whether a blob
sha256:7bff100f35cb359a368537bb07829b055fe8e0b1cb01085a3a628ae9c187c7b8 exists in docker.io/valentinrothberg/alpine: errors:
denied: requested access to the resource is denied
error parsing HTTP 401 response body: unexpected end of JSON input: ""
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 21 (8 by maintainers)
My exact setup is kinda weird. I use nginx as auth proxy and traefik as ssl terminating proxy. So request goes as follows:
Client -(SSL)> Traefik -(HTTP+BasicAuth)> Nginx -(HTTP)> registry:2My main suspect right now is Nginx and its configuration. I’ve roughly followed this page to set it up.
Exact nginx config. Click to expand.
Since proxy could be an issue as mentioned here, I am going to thoroughly investigate that.