Windows主机+ Linux虚拟机的混合docker swarm设置

时间:2019-10-07 13:35:43

标签: docker swarm

是否可以使用以下节点设置来创建群集:

  • 主机(Windows容器模式下的docker桌面)-管理器,工作器
  • HyperV上的VM,同一台计算机-Worker

我尝试了以下操作:

docker swarm init --advertise-addr 172.18.69.65
docker-machine create --driver hyperv --hyperv-virtual-switch ‘Default Switch’ --hyperv-disable-dynamic-memory --hyperv-memory 2048 --hyperv-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v19.03.2/boot2docker.iso docker-worker-linux
docker-machine ssh docker-worker-linux
docker@docker-worker-linux:~$ ping 172.18.69.65
PING 172.18.69.65 (172.18.69.65): 56 data bytes
64 bytes from 172.18.69.65: seq=0 ttl=128 time=0.294 ms
64 bytes from 172.18.69.65: seq=1 ttl=128 time=0.264 ms
docker@docker-worker-linux:~ docker swarm join --token bla-bla-bla 172.18.69.65:2377 Error response from daemon: Timeout was reached before node joined. The attempt to join the swarm will continue in the background. Use the "docker info" command to see the current swarm status of your node. 
docker@docker-worker-linux:~ docker info
Swarm: error
NodeID:
Error: rpc error: code = DeadlineExceeded desc = context deadline exceeded
Is Manager: false
Node Address: 172.18.69.66

在以linux vm作为群节点运行docker桌面的所有加入主机Windows机器上,是否有可能?

0 个答案:

没有答案