`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.
More on Networking, DNS and Compose
`curl: (7) Failed to connect to localhost port 8080: Connection refused` after `docker run -p 8080:80 nginx`.Beginner`Bind for 0.0.0.0:5432 failed: port is already allocated`BeginnerContainers cannot reach the internet: `Temporary failure in name resolution`Advanced`ping` works to IPs but DNS names fail on the default bridge: `ping: bad address 'db'`Beginner`getaddrinfo ENOTFOUND db` in a Compose app.BeginnerCompose: `service "api" depends on undefined service "db"`Beginner