镜像的批量导入和导出
1.批量导入
for i in `ls *.tar.gz`; do docker load -i $i ;done
2.批量导出
docker image save -o xxx.tar.gz `docker images|awk 'NR>1{print $1":"$2}'`
欢迎来撩 : 汇总all
镜像的批量导入和导出
for i in `ls *.tar.gz`; do docker load -i $i ;done
docker image save -o xxx.tar.gz `docker images|awk 'NR>1{print $1":"$2}'`
欢迎来撩 : 汇总all