Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Friendly name and Hyper-V Switch #94

Open
m-kostrzewa opened this issue Nov 29, 2016 · 0 comments
Open

Friendly name and Hyper-V Switch #94

m-kostrzewa opened this issue Nov 29, 2016 · 0 comments

Comments

@m-kostrzewa
Copy link

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):

`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. "
dcantah pushed a commit to dcantah/hcsshim that referenced this issue Mar 17, 2021
remotefs: Added sync to writes and OpenFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant