docker save/load、export/import 区别

  • 区别:
  1. save的对象是image,产生的文件需要用load来生成image;
  2. export的对象是container,产生的文件需要用import来生成image。
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  load        Load an image from a tar archive or STDIN
  export      Export a container's filesystem as a tar archive
  import      Import the contents from a tarball to create a filesystem image

posted on 2019-02-11 15:11  cag2050  阅读(279)  评论(0编辑  收藏  举报

导航