docker pull name && docker save name > name.tar
这个name.tar 是可以传输给其他docker服务器且可以导入的
看看docker的导入导出


[root@host-10-1-1-161 yunwei]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
coredns/coredns 1.2.0 da1adafc0e78 5 weeks ago 34.2 MB
registry.cn-shanghai.aliyuncs.com/gcr-k8s/flannel v0.10.0-amd64 b949a39093d6 3 months ago 44.6 MB
[root@host-10-1-1-161 yunwei]# ls
DNS harbor-offline-installer-v1.4.0.tgz
[root@host-10-1-1-161 yunwei]# docker save coredns/coredns:1.2.0 > coredns.tar
[root@host-10-1-1-161 yunwei]# ls
coredns.tar DNS harbor-offline-installer-v1.4.0.tgz

[root@host-10-1-1-71 yunwei]# docker load < coredns.tar
9198eadacc0a: Loading layer [==================================================>] 542.2 kB/542.2 kB
7cf793e2bcf7: Loading layer [==================================================>] 33.94 MB/33.94 MB
Loaded image: coredns/coredns:1.2.0

相关文章:

  • 2021-07-18
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
猜你喜欢
  • 2021-10-12
  • 2021-10-30
  • 2021-07-16
  • 2021-10-21
  • 2021-07-13
  • 2021-07-01
相关资源
相似解决方案