Docker在Windows10中不起作用 [英] Docker not working in Windows10

查看:248
本文介绍了Docker在Windows10中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Docker版本1.12.2,版本bb80604 VirtualBox 5.1.6

我能够正确安装 Docker Toolbox ,但无法启动默认VM。

I was able to install Docker Toolbox correctly but I am not able to start the default VM.

我试图按照此处给出的说明进行操作,但是我仍然显示系统找不到指定的文件错误。我没有在系统上启用 Hyper-V

I tried to follow the instruction given here but I am still getting The system cannot find the file specified error. I don't have Hyper-V enabled on system.

F:\>docker-machine ls
NAME      ACTIVE   DRIVER      STATE   URL   SWARM   DOCKER   ERRORS
default            not found   Error                          open C:\Users\Animesh\.docker\machine\machines\default\config.json: The system cannot find the file specified.

F:\>docker-machine env --shell=cmd
open C:\Users\Animesh\.docker\machine\machines\default\config.json: The system cannot find the file specified.

F:\>docker rm default
An error occurred trying to connect: open //./pipe/docker_engine: The system cannot find the file specified.

如何解决此问题?

推荐答案

您的docker-machine默认计算机似乎发生了一些问题。

It looks like something bad happened to your docker-machine default machine.

要恢复,请执行以下操作:

To recover, do the following:

docker-machine rm -f default

接下来,打开virtualbox GUI并确保没有与该旧默认 VM相对应的VM,以防万一。如果存在,请从那里手动将其删除。

Next, open the virtualbox GUI and make sure that there isn't a VM that corresponds with that old "default" VM, just in case. If there is, manually delete it from there.

现在,再次打开快速启动终端,它将为您创建一个新的默认虚拟机。

Now, open the quickstart terminal again and it should create a new "default" virtual machine for you.

或者,您也可以这样创建它:

Alternatively, you can create it like this:

docker-machine create -d virtualbox --virtualbox-memory 2048 default

此时,您的命令序列将再次按预期工作

At that point, your sequence of commands should work as expected again.

这篇关于Docker在Windows10中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆