Docker Community Forums

Share and learn in the Docker community.

Tutorial instructions fail when trying to enable virtual switch for swarm


(Jimshowalter) #1

Working on https://docs.docker.com/get-started/part4/#understanding-swarm-clusters, for Local VMs (Windows 10/Hyper-V), it says:

"First, quickly create a virtual switch for your virtual machines (VMs) to share, so they can connect to each other.

  1. Launch Hyper-V Manager
  2. Click Virtual Switch Manager in the right-hand menu
  3. Click Create Virtual Switch of type External
  4. Give it the name myswitch , and check the box to share your host machine’s active network adapter"

I did that, with the result that it completely killed my network connection.

All Windows Updates are current.

On the assumption that the network problem could be addressed later, I tried to follow these steps:

"Now, create a couple of VMs using our node management tool, docker-machine :

docker-machine create -d hyperv --hyperv-virtual-switch “myswitch” myvm1
docker-machine create -d hyperv --hyperv-virtual-switch “myswitch” myvm2"

But it just blows up with this error:

C:\WINDOWS\system32>docker-machine create -d hyperv --hyperv-virtual-switch “myswitch” myvm1
Running pre-create checks…
(myvm1) No default Boot2Docker ISO found locally, downloading the latest release…
Error with pre-create check: “Get …api.github.com/repos/boot2docker/boot2docker/releases/latest: dial tcp: lookup api.github.com: no such host”

which isn’t surprising, because there’s no network.

How do I fix the network?


(Jimshowalter) #2

I had to remove the prefix to the github URL, because newbies can only have one link. Here’s the actual error message:

" Error with pre-create check: “Get https://api.github.com/repos/boot2docker/boot2docker/releases/latest: dial tcp: lookup api.github.com: no such host”