Docker私有仓库搭建

时间:2018-05-03 12:00:58   收藏:0   阅读:204

---恢复内容开始---

在ubuntu16.04上搭建docker 私有仓库,按照下面这篇文章中的步骤,可以很快搭建下来没有问题

https://blog.csdn.net/wangtaoking1/article/details/44180901

但是启动时发现下面问题:

nafei@ubuntu1604-kolla:/etc/systemd/system/multi-user.target.wants$ sudo docker push 192.168.122.5:5000/busybox
The push refers to repository [192.168.122.5:5000/busybox]
Get https://192.168.122.5:5000/v2/: http: server gave HTTP response to HTTPS client

解决思路:
* 修改这个文件,如果没有需要创建这个文件

/etc/docker/daemon.json on the client machine?{ "insecure-registries":["myregistry.example.com:5000"] }?
* Restart docker daemon?:

sudo /etc/init.d/docker restart

---恢复内容结束---

原文:https://www.cnblogs.com/happyorange/p/8984646.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!