码迷,mamicode.com
首页 > 其他好文 > 详细

Docker push image to Docker hub

时间:2019-11-04 17:17:35      阅读:88      评论:0      收藏:0      [点我收藏+]

标签:count   point   blank   hub   技术   before   target   mamicode   name   

1. Before push image to Docker Hub, register an account in https://hub.docker.com/

2.Input "docker login" in the docker command line interface and input the username and password of account from Docker Hub

3.Create and build the docker images, here we use the hello-world from docker as an example

技术图片

 

 

Use below method to create tag and push to docker hub

技术图片

 

 技术图片

 

 

After the image is pushed to the docker hub, you could see the the hello-world image exists in the Docker Hub with the tag as latest(default, you could set it as 0.0.1 and other tag value)

技术图片

 

Key point:

The reponame should be in this format:

技术图片

 

Docker push image to Docker hub

标签:count   point   blank   hub   技术   before   target   mamicode   name   

原文地址:https://www.cnblogs.com/luffystory/p/11792883.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!