Dockerexit code > 0

Error response from daemon: network ... not found

$Error response from daemon: network my-app-net not found

Analysis

You are trying to start a container attached to a Docker network that doesn't exist.

Common Triggers

  • The network was deleted.
  • You forgot to create the network before running the container.
  • Typo in the network name.

Debug Checks

  • $List existing networks: docker network ls.

Resolution

1
Create the network: docker network create <network_name>.
2
Correct the network name in your command or Compose file.