Docker Community Forums

Share and learn in the Docker community.

Docker Transparent Networking

I would like to bind a specific network adapter to a network in docker.

If I do Get-NetAdapter, is shows up as:

PROD Intel® Gigabit 4P I350-t Adapter #2 24 Up B4-96-91-51-E9-04 1 Gbps

In Hyper-V I added it as the Virtual Switch:

vEthernet (prodSwitch) Hyper-V Virtual Ethernet Adapter #2 13 Up B4-96-91-51-E9-04 1 Gbps

From the posts I’ve read, it should be either:

docker network create -d transparent -o com.docker.network.windowsshim.interface=“vEthernet (prodSwitch)” --subnet=192.168.127.0/24 --gateway=192.168.127.1 production

or

docker network create -d transparent -o com.docker.network.windowsshim.interface=“PROD” --subnet=192.168.127.0/24 --gateway=192.168.127.1 production

The first gives me the error:

Error response from daemon: hnsCall failed in Win32: The parameter is incorrect. (0x57)

The second gives me the error:

Error response from daemon: hnsCall failed in Win32: An adapter was not found. (0x803b0006)