You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is the right place to ask, but:
we're trying to do some docker-related networking using Hyper-V Switch. We need a way to associate specific container with a Port when it's connected to the switch. We noticed that Port/NIC "Friendly name" seen in Hyper-V Switch is the same as id in "EndpointList" returned by HNS. Is that the way to go?
Also, is there a way to specify existing vSwitch in optional parameter of a network driver? This is what happens when we try it ("vEthernet (DS)" is our switch):
`docker network create -d transparent -o com.docker.network.windowsshim.interface="vEthernet (DS)" mynetwork`
`Error response from daemon: HNS failed with error : The parameter is incorrect.`
time="2016-11-29T06:13:18.184073000-08:00" level=debug msg="Calling GET /_ping"
time="2016-11-29T06:13:18.190170400-08:00" level=debug msg="Calling POST /v1.26/networks/create"
time="2016-11-29T06:13:18.192964600-08:00" level=debug msg="form data: {\"Attachable\":false,\"CheckDuplicate\":true,\"D
river\":\"transparent\",\"EnableIPv6\":false,\"IPAM\":{\"Config\":[],\"Driver\":\"default\",\"Options\":{}},\"Internal\"
:false,\"Labels\":{},\"Name\":\"mynetwork\",\"Options\":{\"com.docker.network.windowsshim.interface\":\"vEthernet (DS)\"
}}"
time="2016-11-29T06:13:18.194740200-08:00" level=debug msg="Allocating IPv4 pools for network mynetwork (035650ac76f2b63
2265f368911e4eb3349bb98b2fb132e83af2ba6ab71946361)"
time="2016-11-29T06:13:18.196157400-08:00" level=debug msg="RequestPool(LocalDefault, , , map[], false)"
time="2016-11-29T06:13:18.197505500-08:00" level=debug msg="RequestAddress(0.0.0.0/0, <nil>, map[RequestAddressType:com.
docker.network.gateway])"
time="2016-11-29T06:13:18.197505500-08:00" level=debug msg="HNSNetwork Request ={\"Name\":\"035650ac76f2b632265f368911e4
eb3349bb98b2fb132e83af2ba6ab71946361\",\"Type\":\"transparent\",\"NetworkAdapterName\":\"vEthernet (DS)\",\"Subnets\":[{
\"AddressPrefix\":\"0.0.0.0/0\",\"GatewayAddress\":\"0.0.0.0\"}]} Address Space=[{0.0.0.0/0 0.0.0.0 []}]"
time="2016-11-29T06:13:19.550560300-08:00" level=debug msg="releasing IPv4 pools from network mynetwork (035650ac76f2b63
2265f368911e4eb3349bb98b2fb132e83af2ba6ab71946361)"
time="2016-11-29T06:13:19.550560300-08:00" level=debug msg="ReleaseAddress(0.0.0.0/0, 0.0.0.0)"
time="2016-11-29T06:13:19.552067700-08:00" level=debug msg="ReleasePool(0.0.0.0/0)"
time="2016-11-29T06:13:19.554412900-08:00" level=error msg="Handler for POST /v1.26/networks/create returned error: HNS
failed with error : The parameter is incorrect. "
The text was updated successfully, but these errors were encountered:
dcantah
pushed a commit
to dcantah/hcsshim
that referenced
this issue
Mar 17, 2021
Hello,
I'm not sure if this is the right place to ask, but:
we're trying to do some docker-related networking using Hyper-V Switch. We need a way to associate specific container with a Port when it's connected to the switch. We noticed that Port/NIC "Friendly name" seen in Hyper-V Switch is the same as id in "EndpointList" returned by HNS. Is that the way to go?
Also, is there a way to specify existing vSwitch in optional parameter of a network driver? This is what happens when we try it ("vEthernet (DS)" is our switch):
The text was updated successfully, but these errors were encountered: