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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.