先登录到仓库
查看镜像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
先登录到仓库
查看镜像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
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。