3.8 导入镜像(load)
可以使用docker [image] load将导出的tar文件再导入到本地镜像库。支持-i、--input string选项,从指定文件中读入镜像内容。
例如,从文件ubuntu-18.04.tar导入镜像到本地镜像列表,如下所示:
$ docker load -i ubuntu-18.04.jar
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu 18.04 5a214d77f5d7 2 years ago 63.1MB
Last updated
Was this helpful?