docker network ls: List Docker Networks
List the networks Docker knows about.
docker network ls lists all networks, including the built-in bridge, host, and none. This page covers filtering and using it to debug container connectivity.
What it does
docker network ls shows each network ID, name, driver, and scope. The built-in bridge, host, and none always appear; user-defined and compose-created networks show alongside them.
Common usage
Terminal
docker network ls
docker network ls --filter "driver=bridge"
docker network ls --format "{{.Name}} {{.Driver}}"Common errors in CI
network ls is read-only. The CI use: when containers cannot reach each other, list networks and confirm both joined the same user-defined network with docker inspect. Stale compose networks (project_default) can accumulate on persistent runners; remove them with docker network prune.
Related guides
docker network create: Create User-Defined NetworksHow docker network create works: creating bridge networks for container DNS, drivers and subnets, and connect…
docker network rm: Remove Networks & In-Use ErrorsHow docker network rm works: deleting user-defined networks, the active-endpoints error, prune, and CI cleanu…
docker inspect: Low-Level Container & Image DetailHow docker inspect works: dumping JSON metadata for containers, images, volumes, and networks, with --format…
docker compose up: Start Services & CI ErrorsHow docker compose up works: starting all services from a compose file, detached mode, --build, --wait, and t…