[url]http://www.cnblogs.com/lienhua34/p/4922130.html[/url]
【Docker实战】Registry & Portus搭建详解
[url]http://www.cnblogs.com/xcloudbiz/articles/5497037.html[/url]
[size=x-large][color=black][b]4. 可能问题[/b][/color][/size]
在往本地仓库上推送镜像时,可能会出现如下的问题
[code="shell"]# docker push 192.168.142.134:5000/hello-world
The push refers to a repository [192.168.142.134:5000/hello-world]
Get https://192.168.142.134:5000/v1/_ping: http: server gave HTTP response to HTTPS client[/code]
[size=x-large][color=black][b]报错解决办法:[/b][/color][/size]
只需要两步即可:
1. Create or modify /etc/docker/daemon.json
# echo '{ "insecure-registries":["10.10.239.222:5000"] }' > /etc/docker/daemon.json
# cat /etc/docker/daemon.json
{ "insecure-registries":["10.10.239.222:5000"] }
2. 重启docker
root@localhost ~]# systemctl restart docker
[url]http://www.111cn.net/sys/linux/118539.htm[/url]
【Docker实战】Registry & Portus搭建详解
[url]http://www.cnblogs.com/xcloudbiz/articles/5497037.html[/url]
[size=x-large][color=black][b]4. 可能问题[/b][/color][/size]
在往本地仓库上推送镜像时,可能会出现如下的问题
[code="shell"]# docker push 192.168.142.134:5000/hello-world
The push refers to a repository [192.168.142.134:5000/hello-world]
Get https://192.168.142.134:5000/v1/_ping: http: server gave HTTP response to HTTPS client[/code]
[size=x-large][color=black][b]报错解决办法:[/b][/color][/size]
只需要两步即可:
1. Create or modify /etc/docker/daemon.json
# echo '{ "insecure-registries":["10.10.239.222:5000"] }' > /etc/docker/daemon.json
# cat /etc/docker/daemon.json
{ "insecure-registries":["10.10.239.222:5000"] }
2. 重启docker
root@localhost ~]# systemctl restart docker
[url]http://www.111cn.net/sys/linux/118539.htm[/url]
本文档详细介绍了如何使用Docker Registry与Portus搭建私有仓库,并针对在推送镜像过程中遇到的错误提供了有效的解决方案。
619

被折叠的 条评论
为什么被折叠?



