针对 Windows10 下 DockerToolbox-18.03.0-ce 的安装问题

1、如果下载的是旧版本的Docker Toolbox 版本,在安装完毕后,运行终端控制台时会报错,无法正常运行并创建Docker虚拟机

由于安装的是旧的稳定版本的DockerToolBox(这里我用到的是DockerToolbox-18.03.0-ce),运行DockerToolBox终端控制台(Docker Quickstart Terminal)时,程序提示github网站上boot2docker.iso 最新的版本是v19.03.5,程序会自动从github网站上下载v19.03.5版的boot2docker.iso文件到catch目录。因为科学上网问题,无法正常访问位于s3.amazonaws.com服务器上的文件,导致无法正常创建default虚拟机,整个创建过程及报错信息如下:

Running pre-create checks…
(default) Default Boot2Docker ISO is out-of-date, downloading the latest release…
(default) Latest release for github.com/boot2docker/boot2docker is v18.05.0-ce
(default) Downloading C:\Users\26**1.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v19.03.5/boot2docker.iso…
Error with pre-create check: “Get https://github-production-release-asset-2e65be.s3.amazonaws.com/14930729/5f8bfc34-5437-11e8-93cc-7bfa8f5fab4e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180529%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180529T134536Z&X-Amz-Expires=300&X-Amz-\Signature=c54f3f1f63c4b137e476d1b5716dc4362c4bebe1f8d179559d8a36e2ff720cf2&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dboot2docker.iso&response-content-type=application%2Foctet-stream: dial tcp 127.0.0.1:443: connectex: No connection could be made because the target machine actively refused it.”

通过下载、拷贝最新版本的boot2
docker.iso文件(这里提供我用到的boot2docker.iso文件,2020.4.15),分别放到安装目录和缓存目录下,可以解决此问题。详细过程如下:
Docker Toolbox Windows安装遇到的问题
Docker Toolbox Windows安装遇到的问题

2、VirtualBox无法在 ‘docker-machine create’ 中启动虚拟机

由于安装的是旧的稳定版本的DockerToolBox(这里我用到的是DockerToolbox-18.03.0-ce),一同安装的是旧版本的VirtualBox,存在旧版本中未修复的问题,整个创建过程及报错信息如下:

(default) Progress state: NS_ERROR_FAILURE
(default) VBoxManage: error: Failed to create the host-only adapter
(default) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(default) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(default) VBoxManage: error: Context: “RTEXITCODE handleCreate(HandlerArg *)” at line 94 of file VBoxManageHostonly.cpp

This is a known VirtualBox bug. Let’s try to recover anyway… Error creating machine: Error in driver during machine creation: 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.1.28 that is is supposed to fix this issue

通过下载、拷贝最新版本的VirtualBox文件(这里提供我用到的VirtualBox-6.1.6-137129-Win.exe,2020.4.15),可以解决此问题,默认安装即可。


Docker Toolbox 安装成功:)
Docker Toolbox Windows安装遇到的问题


参考:
http://mail.huangxy.com/what/what!doDetail.action?current.id=85565

https://stackoverflow.com/questions/48979126/virtualbox-does-not-start-virtual-machine-in-docker-machine-create

https://q.cnblogs.com/q/104581/

相关文章:

  • 2021-08-02
  • 2021-04-26
  • 2021-06-08
  • 2021-05-19
  • 2021-05-16
  • 2022-12-23
  • 2021-08-05
  • 2021-12-28
猜你喜欢
  • 2021-10-05
  • 2021-03-30
  • 2022-12-23
  • 2021-08-03
  • 2021-12-01
  • 2021-07-02
  • 2022-12-23
相关资源
相似解决方案