docker network “l2bridge” - how to determine values for: subnet, gateway, DNS server and VLAN ID that should be used?

半城伤御伤魂 提交于 2021-01-29 06:29:34

问题


I have VM with virtual network, let's say "VN1" and I need to connect from my docker container to that VM in Windows in Azure for Azure Container Instance. The proper way is that I need to create new l2bridge network:

docker network create -d "l2bridge" --subnet 10.244.0.0/24 --gateway 10.244.0.1 
-o com.docker.network.windowsshim.vlanid=7 
-o com.docker.network.windowsshim.dnsservers="10.244.0.7" my_transparent

How I could determine these values in Azure: subnet: gateway: DNS Server: VLANID: because I did not conifgure any of those previously once my VM has been created (only the name of Virtual Network) but now I need to re-use those in this kind of setup for l2 network driver?

Thank you!!!

来源:https://stackoverflow.com/questions/65790006/docker-network-l2bridge-how-to-determine-values-for-subnet-gateway-dns-se

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!