Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.1.0, 3.3.1
Description
Steps to reproduce:
- Set up a private repository on docker hub and add an image to it.
- Proxy Dockerhub, and add HTTP User authentication.
- Attempt to pull the image from your private repository, it fails:
ericdcobb@Erics-MacBook-Pro ~/d/s/nexus-internal (master) [1]> docker pull 192.168.1.46:18078/ericdcobb/test:myapp Pulling repository 192.168.1.46:18078/ericdcobb/test Error: image ericdcobb/test:myapp not found
If I add a basic auth header to the retrieve bearer token http request here: https://github.com/sonatype/nexus-internal/blob/master/private/plugins/nexus-repository-docker/src/main/java/org/sonatype/nexus/repository/docker/internal/DockerProxyFacetImpl.java#L420 then the request succeeds.
Attachments
Issue Links
- is duplicated by
-
NEXUS-12857 Docker-nexus3 - HTTP authentication fail with Docker private registry in Docker Hub
-
- Closed
-
- is related to
-
NEXUS-12022 Allow preemptive authentication for maven proxy repositories
-
- Done
-
- relates
-
NEXUS-16753 Connection pool leak when docker hub proxy repository receives 401 responses from auth.docker.io
-
- Closed
-
- testing discovered
-
NEXUS-13894 Docker unauthenticated access shows "unknown: unknown" console output
-
- Closed
-