docker import 和 load 区别

内容分享1个月前发布
0 0 0

先看 help

import      Import the contents from a tarball to create a filesystem image  
load        Load an image from a tar archive or STDIN

再看两个与之对应

export      Export a container s filesystem as a tar archive
save        Save one or more images to a tar archive (streamed to STDOUT by default)

可以看出 import 与 export 对应,一个导入一个导出;load 与 save 对应,一个导入一个导出。

并且 import 与 load 都可以导入为一个 image ,但是 export 是对应一个 container ,save 对应一个 image。

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
none
暂无评论...