Windows Boot2Docker 镜像的安装位置在哪里?
Where is the install location of the Windows Boot2Docker Image?
在安装了 docker 工具箱的 Windows 10 Enterprise 上创建新的 docker 机器时遇到代理问题:
docker-machine create -d hyperv mymachine
出现以下错误消息(格式化以提高可读性):
(mymachine) Unable to get the latest Boot2Docker ISO release version:
Get https://api.github.com/repos/boot2docker/boot2docker/releases/latest:
dial tcp 192.30.253.116:443:
connectex: A connection attempt failed
because the connected party did not properly respond after a period of
time, or established connection failed because connected host has
failed to respond.
我从 https://github.com/boot2docker/boot2docker/releases 下载了 Boot2Docker.iso 图片。
现在我只需要将它复制到 Windows 中的正确文件夹。
我需要在哪里复制 .iso 映像以便 docker 机器可以找到它?
在尝试将 iso 文件复制到以下文件夹后它起作用了(仍然出现无法获取最新版本的错误):
- C:\Program Files (x86)\Boot2Docker
- C:\Program Files\Boot2Docker
- C:\Users\user_name\.docker\machine
- C:\Users\user_name\.docker\machine\cache\
发生了以下情况:
Running pre-create checks...
(mymachine) Unable to get the latest Boot2Docker ISO release version: Get https://api.github.com/repos/boot2docker/boot2docker/releases/latest:
dial tcp 192.30.253.116:443: connectex: A connection attempt failed
because the connected party did properly respond after a period of
time, or established connection failed because connected host has
failed to respond. Creating machine...
(mymachine) Unable to get the
latest Boot2Docker ISO release version: Get https://api.github.com/repos/boot2docker/boot2docker/releases/latest:
dial tcp 192.30.253.116:443: connectex: A connection attempt failed
because the connected party did not properly respond after a period of
time, or established connection failed because connected host has
failed to respond.
(mymachine) Copying C:\Users\user_name\.docker\machine\cache\boot2docker.iso to
C:\Users\user_name\.docker\machine\machines\mymachine\boot2docker.iso...
(mymachine) Creating SSH key...
(mymachine) Creating VM...
(mymachine) Using switch "DockerNAT" (mymachine) Creating VHD
...
来自 docker 机器的输出:
(mymachine) Copying C:\Users\user_name\.docker\machine\cache\boot2docker.iso to C:\Users\user_name\.docker\machine\machines\jit-dev\boot2docker.iso
我的结论是 Boot2Docker.iso 图片的正确安装位置在:
C:\Users\user_name\.docker\machine\cache\boot2docker.iso
旁注:机器在 Windows 上由用户名分隔。将机器安装在一个用户身上并不意味着其他人也可以使用它。
在安装了 docker 工具箱的 Windows 10 Enterprise 上创建新的 docker 机器时遇到代理问题:
docker-machine create -d hyperv mymachine
出现以下错误消息(格式化以提高可读性):
(mymachine) Unable to get the latest Boot2Docker ISO release version:
Get https://api.github.com/repos/boot2docker/boot2docker/releases/latest: dial tcp 192.30.253.116:443:
connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
我从 https://github.com/boot2docker/boot2docker/releases 下载了 Boot2Docker.iso 图片。
现在我只需要将它复制到 Windows 中的正确文件夹。
我需要在哪里复制 .iso 映像以便 docker 机器可以找到它?
在尝试将 iso 文件复制到以下文件夹后它起作用了(仍然出现无法获取最新版本的错误):
- C:\Program Files (x86)\Boot2Docker
- C:\Program Files\Boot2Docker
- C:\Users\user_name\.docker\machine
- C:\Users\user_name\.docker\machine\cache\
发生了以下情况:
Running pre-create checks...
(mymachine) Unable to get the latest Boot2Docker ISO release version: Get https://api.github.com/repos/boot2docker/boot2docker/releases/latest: dial tcp 192.30.253.116:443: connectex: A connection attempt failed because the connected party did properly respond after a period of time, or established connection failed because connected host has failed to respond. Creating machine...
(mymachine) Unable to get the latest Boot2Docker ISO release version: Get https://api.github.com/repos/boot2docker/boot2docker/releases/latest: dial tcp 192.30.253.116:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(mymachine) Copying C:\Users\user_name\.docker\machine\cache\boot2docker.iso to C:\Users\user_name\.docker\machine\machines\mymachine\boot2docker.iso...
(mymachine) Creating SSH key...
(mymachine) Creating VM...
(mymachine) Using switch "DockerNAT" (mymachine) Creating VHD
...
来自 docker 机器的输出:
(mymachine) Copying C:\Users\user_name\.docker\machine\cache\boot2docker.iso to C:\Users\user_name\.docker\machine\machines\jit-dev\boot2docker.iso
我的结论是 Boot2Docker.iso 图片的正确安装位置在:
C:\Users\user_name\.docker\machine\cache\boot2docker.iso
旁注:机器在 Windows 上由用户名分隔。将机器安装在一个用户身上并不意味着其他人也可以使用它。