解决Windows 7启动 Docker 报错

来源:互联网 发布:大富翁数据库 编辑:程序博客网 时间:2024/06/16 02:12

我在windowx 7 X64 操作系统安装了Docker-ToolBox ,Docker的版本是17.05.0-ce
启动 Docker Quickstart Terminal报错:

Running pre-create checks...(default) No default Boot2Docker ISO found locally, downloading the latest release...(default) Latest release for github.com/boot2docker/boot2docker is v17.05.0-ce(default) Downloading C:\Users\zheng\.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v17.05.0-ce/boot2docker.iso...(default) 0%Error removing file: Error removing temporary download file: remove C:\Users\zheng\.docker\machine\cache\boot2docker.iso.tmp24517390: The process cannot access the file because it is being used by another process.(default)Looks like something went wrong in step ´Checking if machine default exists´...Press any key to continue...

这是因为,启动时如果检测到没有 Boot2Docker,就会去下载,这个下载过程出现网络连接上的错误了,导致启动失败。


如果存在下载失败的临时文件,要将其删除。(我的机器上的路径是C:\Users\zheng\.docker\machine\cache\boot2docker.iso.tmp24517390)
自己用其他工具去下载对应的 boot2docker.iso 文件(下载链接:https://github.com/boot2docker/boot2docker/releases/download/v17.05.0-ce/boot2docker.iso)
然后放置到对应的目录(我的是:C:\Users\zheng\.docker\machine\cache\boot2docker.iso)就可以了。

5 0
原创粉丝点击