This configuration will go in /etc/docker/daemon.json
Remove default bridge network
{
"bridge": "none"
}
Change default subnet by adding the default-address-pool parameter
{
"default-address-pools":
[
{"base":"172.20.0.0/16","size":24}
]
}
To use a proxy to access image repos, add the following
{
"proxies": {
"http-proxy": "http://forward-proxy.exmaple.com:3128",
"https-proxy": "http://forward-proxy.example.com:3128",
"no-proxy": ".domain.com,myrepo.local,172.16.0.0/24"
}
}
Check out the official docs too.