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建立项目
docker设置http访问
 
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 

相关文章:

  • 2021-11-19
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案