Interview Prep/Docker/Networking, DNS and Compose

`Error response from daemon: user specified IP address is supported only when connecting to networks with user configured subnets`

IntermediateTroubleshootingNetworking, DNS and Compose
Answer

Likely causes → --ip used on the default bridge.

Diagnose → docker network inspect <net> | jq '.[0].IPAM'

Fix → Create a network with --subnet and attach to it.

Prevent → Avoid static IPs.

All Docker questions Roadmap: Docker & containers

More on Networking, DNS and Compose