I want to use a Nexus as private registry to push docker image but I'm not able to login
When I try this :
docker login xxx.xxx.com:8500
I have this message :
Error response from daemon: login attempt to http://xxx.xxx.com:8500/v2/ failed with status: 503 Service Unavailable
I set up my /etc/docker/daemon.json like this :
{
"insecure-registries": [
"xxx.xxx.com:8500",
"xxx.xxx.com:8501"
]
}
And when I try this :
curl http://xxx.xxx.com:8500/v2/_catalog
I have a response :
{"repositories":[]}
Thanks for your help
I solved my issue with modifying the /etc/sysconfig/docker file. I added NO_PROXY="xxx.xxx.com" then exec "systemctl restart docker" and it worked.