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 39 / 45

Listing Volumes with docker volume ls

When you want to see which volumes exist, use docker volume ls. It lists every volume on the machine.

The syntax is docker volume ls.

Running docker volume ls shows the driver and name of each volume.

A common stumble is forgetting that removing a container does not remove its volumes. Orphaned volumes accumulate and quietly consume disk.

In real work, it is how you audit what data exists before cleaning up, so you don't delete something that matters.

Docker
Try it (type this into the pseudo terminal)
docker volume 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)