Docker push image to Docker hub

浪子不回头ぞ 提交于 2019-12-03 11:11:37

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)

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!