[英]Not able to push image to private docker registry
After setting up a private docker registry on a server within my network, I'm not able to push images to it.在我网络内的服务器上设置私有 docker 注册表后,我无法将图像推送到它。 Setup was done as following:
设置如下:
/certs
on the registry server (192.xxx) and placed .cert
and .key
files there/certs
并将.cert
和.key
文件放在那里192.xxx example.com
192.xxx example.com
example.com/my-image
and tried to pushexample.com/my-image
并尝试推送But I'm always getting the error Get https://example.com/v2/ Bad Gateway
但我总是收到错误
Get https://example.com/v2/ Bad Gateway
What am I doing wrong?我究竟做错了什么?
I think you need to authenticate to the repository you are trying to push the image to.我认为您需要对您尝试将图像推送到的存储库进行身份验证。 Docker Command:
docker login <address_to_your_repository>
. Docker 命令:
docker login <address_to_your_repository>
。 It should prompt you for credentials.它应该提示您输入凭据。
The docker documentation shows that docker registry is started on port 5000, while your tag/push seems to not take that into account. docker 文档显示 docker 注册表是在端口 5000 上启动的,而您的标签/推送似乎没有考虑到这一点。
I would try to 2 things:我会尝试两件事:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.