Container Networking on Windows 10

%3CLINGO-SUB%20id%3D%22lingo-sub-61312%22%20slang%3D%22en-US%22%3EContainer%20Networking%20on%20Windows%2010%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61312%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20Docker%20CE%20running%20on%20my%20windows%2010%20machine%20and%20have%20successfully%20switched%20to%20Windows%20containers.%26nbsp%3B%20However%2C%20the%20NAT%20range%20my%20machine%20generates%20seems%20to%20change%20with%20each%20network%20i%20connect%20to%20-%20even%20if%20i%20delete%20the%20virtual%20switch%20and%20recreate%20with%20a%20speficied%20range.%26nbsp%3B%20Does%20anyone%20know%20how%20these%20ranges%20are%20created%20(i.e.%20is%20there%20a%20formula%3F)%20or%20if%20you%20can%20force%20it%20to%20stay%20on%20the%20range%20your%20set%3F%26nbsp%3B%20I%20appreciate%20this%20sounds%20a%20little%20odd%2C%20but%20our%20corporate%20proxy%20dishes%20out%20settings%20based%20on%20IP%2FSubnet%20detail%20and%20this%20is%20causing%20me%20some%20issues%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-61312%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocker%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENAT%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENetworking%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ewindows%2010%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor

Hi Guys,

 

I have Docker CE running on my windows 10 machine and have successfully switched to Windows containers.  However, the NAT range my machine generates seems to change with each network i connect to - even if i delete the virtual switch and recreate with a speficied range.  Does anyone know how these ranges are created (i.e. is there a formula?) or if you can force it to stay on the range your set?  I appreciate this sounds a little odd, but our corporate proxy dishes out settings based on IP/Subnet detail and this is causing me some issues

1 Reply
Highlighted
Hi,
please these links can help:

Windows container networking
https://docs.microsoft.com/en-us/virtualization/windowscontainers/container-networking/architecture

Networking features in Docker Desktop for Windows
https://docs.docker.com/docker-for-windows/networking/

Windows Container Networking for Windows 10 and Windows Server 2016
https://blogs.technet.microsoft.com/wsnetdoc/2017/09/18/windows-container-networking-for-windows-10-...