---恢复内容开始---
在ubuntu16.04上搭建docker 私有仓库,按照下面这篇文章中的步骤,可以很快搭建下来没有问题
https://blog.csdn.net/wangtaoking1/article/details/44180901
但是启动时发现下面问题:
[email protected]:/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
时间: 2024-10-09 17:32:08