docker images导入导出方式
docker images导入导出
导出镜像
如果要存出镜像到本地文件,可以使用docker save命令。
例如,存出本地的ubuntu:14.04镜像为文件ubuntu_14.04.tar:
$ sudo docker save -o /home/user/images/ubuntu_14.04.tar ubuntu:14.04
导入镜像
可以使用docker load从存出的本地文件中再导入到本地镜像库
例如,从文件ubuntu_14.04.tar导入镜像到本地镜像列表,如下所示:
$ sudo docker load --input ubuntu_14.04.tar
docker images出现错误
系统:win10 pro
版本:Docker version 17.12.0-ce, build c97c6d6
问题
docker images
命令出现下列错误信息
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.35/info: open //./pipe/docker_engine: The system cannot find the file specified.
In the default daemon configuration on Windows, the docker client must be run elevated to connect.
This error may also indicate that the docker daemon is not running.
解决方法
保持设置中的以下选项选中
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。
相关文章
使用docker部署influxdb与 mongo的常用命令
这篇文章主要介绍了使用docker部署influxdb与 mongo的常用命令,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下2019-05-05
最新评论