docker 上传镜像到harbor仓库

先登录到仓库

 

查看镜像ID 、tag

 

打tag 然后上传

 

命令解析

docker tag centos:7 192.168.31.128/test/centos7

 

docker命令

tag 打tag

centos:7 镜像名字和Tag版本

192.168.31.128 harbor仓库位置

test 仓库的项目名字

centos7 为存储在仓库中的名字

 

docker push 192.168.31.128/test/centos7

猜你喜欢

转载自www.cnblogs.com/li0920/p/12766397.html