87.5k views
1 vote
What lists all available/configured Docker networks?

A) docker network show

B) docker network list

C) docker network ls

D) docker network inspect

1 Answer

4 votes

Final answer:

To list all available or configured Docker networks, the command 'docker network ls' should be used. It presents a table with details of each network managed by Docker.

Step-by-step explanation:

The correct command to list all available or configured Docker networks is:

C)

docker network ls

This command displays a list of all the networks that Docker is currently managing. Each network is listed with information, such as its name, driver, and scope. The other commands mentioned either do not exist or serve different purposes within the Docker ecosystem. For example, docker network inspect is used to display detailed information about a specific Docker network.

User Jonathan DeMarks
by
7.7k points