docker Mirror migration
Background, the local test environment to test the line to cut, mirrored download or compile will take time. So scp directly mirrored in the past to save time.
save with respect to the export takes up more storage space
All mirrors are exported to migrate servers
docker images |awk '{print $1" -o "$1"__.tar"}' | xargs -n3 docker save
Copied to the server
scp * .tar root @ target server ip:
Import all the target server mirroring
for i in $(ls *_.tar) ;do cat $i |docker load ;done
Check the import destination server mirroring
docker images
carry out
[Demand] docker-compose up