'When I login to Docker Nexus 3 private registry, I get 404 error
I am working in a closed environment, and I need to login to a private Nexus3 registry.
I have setup the daemon.json with the insecure-registries option.
I can ping the server, telnet the port and curl the endpoint.
I can login to Nexus3 UI with my credentials.
However, the docker login command shows this:
Error response from daemon: login attempt to http://servername:16003/v2/ failed with status: 404 Not Found
Is it an issue with Docker 19.3.01? On other machines with Docker 18.x.x, the login works.
Nexus 3.12.1-01
Docker 19.03.1
SUSE Linux Enterprise Server 12 (x86_64)
Solution 1:[1]
I'm facing this very same issue and I haven't found a way out... Any search on the internet leads to the very same comments, like "set a connector port", but I'm using a dedicated port and the port is correctly published (5050 btw).... still no way to login via http (yes, not https, I have the host listed among insecure registries) and I get this damn 404 error.
Solution 2:[2]
I had the very same problem and this answer solved the issue for me. Especially the part:
did not work for me until I created the file
/etc/default/docker
and put the line
DOCKER_OPTS="--config-file=/etc/docker/daemon.json"
Only then the insecure-registry-setting was really active.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Roberto Lo Giacco |
Solution 2 | Maximilian Wollnik |