Docker Community Forums

Share and learn in the Docker community.

Docker network doesn't stay private after restart


(Asampal) #1

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?


#2

Having exactly the same problem and I didn’t find any solution that is not based on setting all not identified networks to private which is not the sense of setting vErhernet (DockerNAT) only to private.