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
原文地址:https://www.cnblogs.com/cag2050/p/10361941.html