Docker's default subnet collides with the company VPN.
IntermediateScenarioNetworking and Compose
Answer
Situation read → 172.17.0.0/16 or auto-assigned 172.18+ overlap with corporate ranges and break routing.
What I'd do → Change in /etc/docker/daemon.json:
{
"bip": "10.200.0.1/24",
"default-address-pools": [{"base": "10.201.0.0/16", "size": 24}]
}
Restart docker and recreate networks.
Why → Pool applies to new networks; existing ones keep the old subnet.
Interview tip → Plan address space with the network team up front.
More on Networking and Compose
Containers on the default bridge cannot resolve each other by name. Why, and what do you do?BeginnerHow do you expose a container only to the local host, not the internet?BeginnerDesign a Compose file for web + api + postgres + redis with correct startup ordering.IntermediateFrontend must reach the API but not the database. Segment the network.IntermediateA container needs to call a service running on the Docker host.BeginnerWhen would you use `--network host`?Intermediate