Docker Community Forums

Share and learn in the Docker community.

Modify Pre-Define network on Windows


(Aguerard) #1

Hello,

After installing docker for Windows, I can see 2 pre-define network getting created. When I inspect them, I can see the subnet range use by the pre-define network:

“Config”: [
{
“Subnet”: “172.31.96.0/20”,
“Gateway”: “172.31.96.1”
}
]

How can I change the Subnet/Gateway to a different IP address?

I try adding the bid in the deamon.json but it doesn’t work.

Thanks,
Alex


#2

I too would like to predetermine the IP or IP range being used by Docker before the build starts. Any help would be appreciated.