[英]Unable to Push image to docker container registry
I have configured docker container registry and frontend as described here我已经按照此处所述配置了 docker 容器注册表和前端
Container registry (port 9001)
and frontend (port 8080)
are working without any error, but when I try to push the image after tagging it I am getting error (mentioned below)容器注册表(port 9001)
和前端(port 8080)
工作没有任何错误,但是当我在标记后尝试推送图像时出现错误(如下所述)
$ sudo docker tag nginx:1.17.0 localhost:9001/nginx:reg
$ sudo docker push localhost:9001/nginx:reg
The push refers to repository [localhost:9001/nginx]
Get http://localhost:9001/v2/: read tcp 127.0.0.1:39514->127.0.0.1:9001: read: connection reset by peer
Finally found the issue I was running the container registry on Ports 9001:9001
(host port: registry port) which was wrong, container registry expose services at port 5000
.最后发现我在端口9001:9001
(主机端口:注册表端口)上运行容器注册表的问题,这是错误的,容器注册表在端口5000
上公开服务。 So I re-ran container registry on Ports 5000:5000
and the issue was resolved所以我在端口5000:5000
上重新运行了容器注册表,问题得到了解决
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.