Docker push image to Docker hub

Posted luffystory

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker push image to Docker hub相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

The push refers to repository [xxx] An image does not exist locally with the tag:xxx

Docker push images出现Skipped foreign layer的原因

Centos 7: 改变docker的image存放目录

docker registry push错误“server gave HTTP response to HTTPS client”

Docker 私有registry出现的证书问题

docker命令集锦