【发布时间】:2023-03-30 17:58:01
【问题描述】:
我正在尝试在 Windows 10 上安装和运行 docker,但我遇到了这个错误,
我正在执行这些步骤
- 安装虚拟盒子
- 关闭 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 和 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
【问题讨论】:
-
我能问一下您为什么使用 Virtual Box,但仍然启用了 HyperV?既然启用了 HyperV,为什么不直接使用在 HyperV 中运行的默认 Docker/Windows 10 Linux 主机?
-
@MichaelLloydLeemlk 我是 docker 的初学者,我只是在学习一些教程。我禁用了 HyperV 并尝试了
docker-machine start box(我用docker-machine create box创建了它)但仍然遇到同样的错误 -
听起来您正在学习旧教程。启用 Hyper-V,安装最新版本的 Docker for Windows,它应该可以正常工作。 Docker for Windows 将在 Hyper-V 中为您创建一个运行 Linux 的 VM。
标签: docker