Docker own image posted to the individual private warehouse

Docker own image posted to individual private warehouse

1. Registration dockerhub account

docker provides a similar github repository dockerhub,

URL https://hub.docker.com/ need to register to use

2. login account on the server

docker login

3. Modify the correct image name

Note To ensure that image is the account name of the tag, if the mirror name does not need to change it tag

The syntax is: Docker Tag warehouse name username / warehouse name

docker tag zero / centos-vim user name / centos-vim

 

4. Push docker image to dockerhub

# Docker push user name / image name

# Docker push username / centos-vim: latest

 

5. In dockerhub inspection mirror

https://hub.docker.com/

6. Delete local mirror test download pull image files

# Delete uploaded image

#docker images

#docker rmi username / CentOS-Vim (i.e. uploaded image name)

 

docker pull upload image name

 

Guess you like

Origin www.cnblogs.com/hszstudypy/p/11565244.html