docker设置http访问


1 编辑配置文件
   vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://a4fyjv0u.mirror.aliyuncs.com"],
"insecure-registries": [
    "192.168.33.70"
  ]
}
 
其中ip地址为本地搭建的harbor镜像源地址
 
2 重启docker 
 
systemctl restart docker
 
3 harbor建立项目
 
4 本地推送到hello去
docker tag 0d120b6ccaa8 192.168.33.70/hello/centos:1.0
 
docker push 192.168.33.70/hello/centos:1.0
 
docker rmi 192.168.33.70/hello/centos:1.0
 
docker pull 192.168.33.70/hello/centos:1.0 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM