一键导出k8s所需要镜像

一键导出 k8s 镜像

1
2
ctr -n k8s.io  images list | grep -E 'k8s.gcr.io|gcr.io/google_containers' | awk '{print $1 }' > k8s.images
ctr -n k8s.io i export  k8s-1-23-8.tar  $(cat k8s.images)

通过 docker 导出包

1
2
       cat mysql-images.txt | xargs -I {} docker pull {}
docker save $(cat my-namespace-images.txt) -o mysql-images.tar
Licensed under CC BY-NC-SA 4.0
最后更新于 Jan 06, 2025 05:52 UTC
comments powered by Disqus
Built with Hugo
主题 StackJimmy 设计
Caret Up