Interview Prep/Docker/Networking, DNS and Compose

`could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network`

IntermediateTroubleshootingNetworking, DNS and Compose
Answer

Likely causes → Too many networks (each Compose project takes a /16 by default) have exhausted the default pools.

Diagnose → docker network ls | wc -l

Fix → docker network prune; configure smaller pools: "default-address-pools":[{"base":"10.10.0.0/16","size":24}].

Prevent → Use /24 pools and clean up CI networks.

All Docker questions Roadmap: Docker & containers

More on Networking, DNS and Compose