On Windows 10 (64 bit, CU), the default network created when installing Docker, DockerNAT, is initially a public network. I set it to private from an administrative PowerShell console with the following command:
Set-NetConnectionProfile -interfacealias "vEthernet (DockerNAT)" -NetworkCategory Private
The problem is that the network gets reset to ‘public’ after a Windows restart. Why does this happen, and is there any way to make this setting persist?