[英]Docker registry with Nexus : 503 Service Unavailable
I want to use a Nexus as private registry to push docker image but I'm not able to login我想使用 Nexus 作为私有注册表来推送 docker 图像,但我无法登录
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:我像这样设置我的 /etc/docker/daemon.json :
{
"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.我通过修改 /etc/sysconfig/docker 文件解决了我的问题。 I added NO_PROXY="xxx.xxx.com" then exec "systemctl restart docker" and it worked.我添加了 NO_PROXY="xxx.xxx.com" 然后 exec "systemctl restart docker" 并且它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.