Ad space (banner)
AD

Got the fundamentals? A structured Docker course is a fast way to level up.

Find Docker courses on Udemy

Affiliate link. Costs you nothing extra.

🐳Docker Lessons
Lesson 41 / 45

Listing Networks with docker network ls

When you want to see the available networks, use docker network ls. It lists every Docker network.

The syntax is docker network ls.

Running docker network ls shows the network ID, name, driver and scope — including the built-in bridge, host and none networks.

A common stumble is not realizing containers join the default bridge network unless told otherwise, where name-based lookup doesn't work.

In real work, it helps you confirm which network an application's containers actually joined when they can't reach each other.

Docker
Try it (type this into the pseudo terminal)
docker network ls

🧑‍💻 You can type this command into the Docker pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)