先登錄到倉庫
查看鏡像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刪除。