gpt4 book ai didi

docker - Docker机器没有显示在Virtual Box上吗?

转载 作者:行者123 更新时间:2023-12-02 18:39:34 28 4
gpt4 key购买 nike

我已经安装了docker机器,当我使用docker-machine ls命令检查时,它显示正在运行。但这并没有最终在我的虚拟盒子上创建默认VM。

生成的日志如下:

Running pre-create checks...
Creating machine...
(default) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/default/boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...

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.
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env default
root@varun:~# docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Running tcp://192.168.99.100:2376 v17.09.0-ce

我应该怎么做才能使docker机器也能在Virtual Box上创建为VM?

最佳答案

尝试创建Hyper-V虚拟交换机并引用它

docker-machine create -d hyperv --hyperv-virtual-switch“NameOfVirtualSwitch” nameOfNode

请参阅文档。
<https://docs.docker.com/machine/drivers/hyper-v/#4-create-the-nodes-with-docker-machine-and-the-microsoft-hyper-v-driver>

关于docker - Docker机器没有显示在Virtual Box上吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46737800/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com