Sco*_*ard 6 macos docker docker-toolbox
我无法运行 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.
Run Code Online (Sandbox Code Playgroud)
第二个错误
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.
Run Code Online (Sandbox Code Playgroud)
我已经卸载并重新安装,并多次删除了我的所有容器,但一直出现相同的错误。
这是我所做的:
使用删除 vboxnet0 接口
VBoxManage hostonlyif 删除 vboxnet0
卸载 Docker Toolbox for Mac
sudo ifconfig vboxnet0 down && sudo ifconfig vboxnet0
通过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
Run Code Online (Sandbox Code Playgroud)
完全删除现有的“构建”机器
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 的建议将 --virtualbox-hostonly-cidr "192.168.90.1/24" 添加到创建中:错误检查 TLS 连接:错误检查和/或重新生成证书:验证证书时出错,但没有帮助。
谁有想法?我完全被困住了。
我遇到了同样的问题,问题中列出的任何事情都没有解决它。
帮助我前进的是删除 vm 目录,在我的例子中:
rm -rf $HOME/.docker/machine/machines/default
docker-machine create default
eval "$(docker-machine env default)"
Run Code Online (Sandbox Code Playgroud)
这破坏了一切(丢失了所有图像),但解决了网络(?)问题。
| 归档时间: |
|
| 查看次数: |
1582 次 |
| 最近记录: |