none
Docker Networking Issues RRS feed

  • Question

  • 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(R) 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 prod3

    or

    docker network create -d transparent -o com.docker.network.windowsshim.interface="PROD" --subnet=192.168.127.0/24 --gateway=192.168.127.1 prod3

    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)

    So, how does one bind a specific docker network to a specific adapter?

    Monday, August 26, 2019 5:31 PM