Interview Prep/Docker/Networking, DNS and Compose

`network <name> declared as external, but could not be found`

BeginnerTroubleshootingNetworking, DNS and Compose
Answer

Likely causes → The external network was never created.

Diagnose → docker network ls | grep &lt;name>.

Fix → docker network create &lt;name> first; or remove external: true so Compose creates it.

Prevent → Create shared networks in a bootstrap script.

All Docker questions Roadmap: Docker & containers

More on Networking, DNS and Compose