pushing docker image to dockerhub

后端 未结 3 2056
感情败类
感情败类 2020-12-25 14:30

I ve created my own docker file ( that runs a shell script which prints \"helloworld\"). The image is \"hellodocker\" and the tag is \"mytag\" I now have:

ba         


        
3条回答
  •  借酒劲吻你
    2020-12-25 15:02

    You either need to tag it as /hellodocker when you build it, e g

    docker build -t /hellodocker:mytag .
    

    or create a new tag tied to the same image, i e

    docker tag hellodocker:mytag /hellodocker:mytag
    

提交回复
热议问题