在Windows 10中运行Docker

时间:2018-03-27 12:21:25

标签: docker

我尝试在Windows 10上安装和运行docker,但我遇到了这个错误,

我遵循这些步骤

  • 安装Virtual Box
  • 关闭Hyper-V
  • 重启电脑
  • docker-machine创建框
  • 开启Hyper-V
  • 重启电脑
  • docker-machine启动框

错误

This is a known VirtualBox bug. Let's try to recover anyway... Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue

我还看了github issue e this one,但仍然有同样的错误。

有人可以帮助我吗?

我使用VirtualBox版本5.2.8-121009-Win

一些命令和结果

docker ps

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.37/containers/json: open //./pipe/docker_engine: O sistema não pode encontrar o arquivo especificado. 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-machine ls

NAME   ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER    ERRORS
box    -        virtualbox   Stopped                 Unknown

docker-machine启动框

This is a known VirtualBox bug. Let's try to recover anyway...
Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue

1 个答案:

答案 0 :(得分:0)

根据您上面的评论,听起来您要么遵循旧教程(Docker for Windows之前),要么遵循不符合Docker for Windows(即Windows 10 Home)要求的设备教程。鉴于您关闭了Hyper-V,我将假设您使用的是Windows 10 Pro。

最新版本的Docker for Windows不使用docker-machine命令,而是在Hyper-V“幕后”为您创建VM。你应该只能installing Docker for Windows

逃脱