区别: save的对象是image,产生的文件需要用load来生成image: 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
对于大多数node初学者而言, module.exports应该都是理解的, 但多出来一个exports获取就有些疑问了 疑问一: 既然有module.exports了为什么还要有exports? 疑问二: 两者有什么区别? 首先, 官网是这么回答的 The exports variable is available within a module's file-level scope, and is assigned the value of module.exports before the