标签:rtu 保存 nbsp created 使用 ima save 本地 repos
如果要导出镜像到本地文件,可以使用 docker save 命令。
$ sudo docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
ubuntu              14.04               c4ff7513909d        5 weeks ago         225.4 MB
...
$sudo docker save -o ubuntu_14.04.tar ubuntu:14.04
可以使用 docker load 从导出的本地文件中再导入到本地镜像库,例如
$ sudo docker load --input ubuntu_14.04.tar
或
$ sudo docker load < ubuntu_14.04.tar
这将导入镜像以及其相关的元数据信息(包括标签等)。
标签:rtu 保存 nbsp created 使用 ima save 本地 repos
原文地址:https://www.cnblogs.com/jdwy24/p/11506414.html