Common operations docker mirroring

1. Save image

#docker save -o saved image name and full address of the file name
docker save zhoushiya / zhiboyuan -od: /zhiboyuan.tar

2. Load Mirror

#docker load -i file name and full address file
docker load -i d:/zhiboyuan.tar

3. Rename the mirror

Mirror Mirror #docker tag id name: Label
docker tag 3eab zhoushiya/zhiboyuan:latest

4. Remove Mirror

#docker rmi image id
docker rmi 3eab

5. Check all mirrors

docker images

6. Log docker hub, and then pushed to the individual warehouse

#docker login -u user name
docker login -u zhoushiya
# Pops up password, then enter the password

# Pushed dockerhub
# Command Format: docker push NAME [: TAG]
docker push zhoushiya/zhiboyuan:latest

  

Guess you like

Origin www.cnblogs.com/zhoushiya/p/12111323.html