首页 > 其他分享 >docker一次性打包所有镜像

docker一次性打包所有镜像

时间:2023-02-05 10:26:16浏览次数:44  
标签:ago v1.50 tar images 镜像 docker k8s 打包

$ docker images
REPOSITORY                                           TAG       IMAGE ID       CREATED        SIZE
registry.aliyuncs.com/google_containers/kube-proxy   v1.25.0   58a9a0c6d96f   3 days ago     61.7MB
rancher/mirrored-flannelcni-flannel                  v0.19.1   252b2c3ee6c8   3 weeks ago    62.3MB
rancher/mirrored-flannelcni-flannel-cni-plugin       v1.1.0    fcecffc7ad4a   3 months ago   8.09MB
registry.aliyuncs.com/google_containers/pause        latest    350b164e7ae1   8 years ago    240kB
#打包
$ docker image save `docker image ls --format "{{.Repository}}:{{.Tag}}"` -o k8s-node-images-v1.50.0.tar
#压缩
$ gzip k8s-node-images-v1.50.0.tar
#拷贝到其他主机之后
#直接加载镜像就好了
$ docker load -i k8s-node-images-v1.50.0.tar.gz

标签:ago,v1.50,tar,images,镜像,docker,k8s,打包
From: https://www.cnblogs.com/guangdelw/p/17092936.html

相关文章