发表评论
该命令用于导入使用docker save
命令导出的镜像。
docker load [OPTIONS]
-i:指定导出的文件
-q:精简输出信息
导入 ubuntu.tar 文件为镜像
docker load -i ubuntu.tar docker load < ubuntu.tar
类似命令的辨析
docker export
:导出容器
docker import
:导入容器为镜像
docker save
:导出镜像
docker load
:导入镜像
$ docker load --help Usage: docker load [OPTIONS] Load an image from a tar archive or STDIN Options: -i, --input string Read from tar archive file, instead of STDIN -q, --quiet Suppress the load output