导出某个镜像
docker save harbor.hy.org/cicd/front:desk-2.1-x86_64-2204270213 -o test1.tar
导出所有镜像
docker save $(docker images | grep -v REPOSITORY | awk 'BEGIN{OFS=":";ORS=" "}{print $1,$2}') -o test.tar
导入镜像
docker load -i test.tar
docker save harbor.hy.org/cicd/front:desk-2.1-x86_64-2204270213 -o test1.tar
docker save $(docker images | grep -v REPOSITORY | awk 'BEGIN{OFS=":";ORS=" "}{print $1,$2}') -o test.tar
docker load -i test.tar
本文标题:docker导出导入镜像
本文链接:https://www.haomeiwen.com/subject/pmclyrtx.html
网友评论