【发布时间】:2018-09-12 19:46:35
【问题描述】:
我无法让 Docker Toolbox for Mac 运行。几个月前我让它完美运行。但是现在,它不断收到错误:
This machine has been allocated an IP address, but Docker Machine could not reach it successfully.
SSH for the machine should still work, but connecting to exposed ports, such as the Docker daemon port (usually <ip>:2376), may not work properly.
You may need to add the route manually, or use another related workaround.
This could be due to a VPN, proxy, or host file configuration issue.
You also might want to clear any VirtualBox host only interfaces you are not using.
第二个错误
Error creating machine: Error checking the host: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.100:2376": dial tcp 192.168.99.100:2376: i/o timeout
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which might stop running containers.
我已经卸载并重新安装,并多次删除了我的所有容器,但仍然出现相同的错误。
这是我所做的:
- 使用 VirtualBox 删除所有“仅主机适配器”|选择机器 |设置 |网络删除所有仅主机适配器
-
使用删除 vboxnet0 接口
VBoxManage hostonlyif remove vboxnet0
卸载 Docker Toolbox for Mac
- 停止 Docker 应用。
- 删除应用程序目录 Docker
- 停止所有正在运行的虚拟机(机器重新启动可以很好地做到这一点)
- 停止 VirtualBox
- 删除应用程序目录VirtualBox
- 弹跳 vboxnet0 接口
sudo ifconfig vboxnet0 down && sudo ifconfig vboxnet0 - 重启 Mac
-
通过https://docs.docker.com/toolbox/toolbox_install_mac/下载安装Docker
码头工人版本
返回
Client:
Version: 18.03.0-ce
API version: 1.37
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:06:22 2018
OS/Arch: darwin/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:14:32 2018
OS/Arch: linux/amd64
Experimental: true
-
完全删除现有的“构建”机器
docker-machine rm 构建
-
创建名为“build”的机器
docker-machine create --driver virtualbox --virtualbox-memory 4096 --engine-opt dns=9.0.128.50 --engine-opt dns=9.0.130.50 build
但我仍然遇到与上述相同的错误。
我已经阅读了许多与此相关的帖子,但似乎没有任何帮助。尝试按照Docker: Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates 的建议将 --virtualbox-hostonly-cidr "192.168.90.1/24" 添加到创建中,但这没有帮助。
有人有什么想法吗?我完全被困住了。
【问题讨论】:
-
有没有人对如何调试这个问题提出建议?或者什么样的事情可能会导致这些错误?
标签: macos docker docker-toolbox