Docker hub of use

Speak their own image pushed to the docker hub

First, the image on their label

docker tag ubuntu:18.04 username/ubuntu:18.04

Second, log onto their docker hub

docker login

Third, the push docker hub

docker push username/ubuntu:18.04

Note: Do not add your own id label, push fails

 

Pull your own image

docker pull username/ubuntu:18.04

 

Note: Login to check image URL own push is https://hub.docker.com/, not https://github.com/docker

 

Guess you like

Origin www.cnblogs.com/soymilk2019/p/11521755.html