美文网首页路大师_XA
Docker上传镜像到Harbor仓库

Docker上传镜像到Harbor仓库

作者: 墨迹嘿嘿 | 来源:发表于2021-12-08 09:10 被阅读0次

    首先登录Harbor仓库,因为我已经登录过了,所以出现的是下面的图片

    image

    登录成功之后,我们查看目前有的镜像,并将下面镜像进行上传

    docker images
    
    image

    先打一个tag,然后再推上去

    docker tag springboot/spring-boot-docker:latest 192.168.x.240/test_dev/spring-boot
    
    image
    docker push 192.168.x.240/test_dev/spring-boot
    
    image

    可以在Harbor仓库中看到推的镜像了

    image

    拉取:

    image

    相关文章

      网友评论

        本文标题:Docker上传镜像到Harbor仓库

        本文链接:https://www.haomeiwen.com/subject/wjraxrtx.html