Open Attil opened 7 years ago
ping @johnstep
I will look into this today.
Apologies for the delay, but I will provide an update today. Thanks!
Unfortunately, it looks like this is currently hard-coded for Windows. @mavenugo, do you know there is a way to work around this issue, or if there is a plan to improve this?
I am also running into this issue. I have to pre-create the VMSwitches, because they require custom routing information which would be lost from the interfaces if Docker created them and cause Docker to loose Swarm connectivity. Loosing connectivity to the Swarm causes Docker to go into an endless loop of creating the networks, breaking routing, loosing connectivity, deleting everything, connecting to Swarm and starting all over again.
@johnstep Would it be possible to get support for something like "com.docker.network.windowsshim.vmswitch" for overlay and transparent network types?
I presume this would have to be added to HNS (docker uses the golang shim available at https://github.com/microsoft/hcsshim; afaik all the Get/New...-ContainerNetwork
cmdlets talk directly to HNS as well).
@mavenugo do you know if support of this is in Microsoft's plans for docker?
Hi,
Description
I cannot make docker use a virtual switch that I've set up earlier, using Hyper-V Manager.
I've used a few different approaches to achieve this
dockerd -D --bridge="<virtual switch name>"
nat
was created anywaydocker --help
,--bridge
should do exactly what I want. However, this parameter seems to be ignored unless itsnone
docker network create -d transparent -o com.docker.network.windowsshim.interface="vEthernet (<virtual switch name>)" Network
Error response from daemon: HNS failed with error : The parameter is incorrect.
nat
andl2bridge
drivers instead oftransparent
, but the result was the sameIs there any procedure to follow to use an existing (ie. created before even installing docker) virtual switch? Could it be achieved by writing a custom network driver?
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.): Tried it twice: on a physical machine and on a Hyper-V machine with nested virtualization enabled. Neither worked.