docker Mirror bulk packaging

docker Mirror bulk packaging

Bulk packaged mirror:

# docker save $(docker images | grep -v REPOSITORY | awk 'BEGIN{OFS=":";ORS=" "}{print $1,$2}') -o k8s-master.tar


All the mirrors on the packaging machine to haha.tar file inside.

Import image:

# docker load -i k8s-master.tar

Then docker images you can see the mirror image of the copied.

Guess you like

Origin www.cnblogs.com/Dev0ps/p/10993932.html