Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
Docker Docker & Containers: From Zero to Production Docker Volumes Module 4 — Volumes and Data

Managing Volumes — Create, List, Inspect, and Remove

Reviewed & accurate
AI Summary

What You'll Learn

Beginner

  • All docker volume commands
  • How to inspect and manage volumes
  • How to clean up unused volumes
Terminalbash
docker volume create my-data
docker volume ls
docker volume inspect my-data
docker volume rm my-data
docker volume prune  # remove unused
docker volume prune
Deletes all unused volumes — permanently deletes data. Use with caution!
Create: docker volume createInspect: docker volume inspect shows the mount path.Remove: docker volume rm

Key Takeaways

  • <
  • c
  • o
  • d
  • e
  • >
  • d
  • o
  • c
  • k
  • e
  • r
  • v
  • o
  • l
  • u
  • m
  • e
  • p
  • r
  • u
  • n
  • e
  • <
  • /
  • c
  • o
  • d
  • e
  • >
  • d
  • e
  • l
  • e
  • t
  • e
  • s
  • u
  • n
  • u
  • s
  • e
  • d
  • v
  • o
  • l
  • u
  • m
  • e
  • s
  • —
  • b
  • e
  • c
  • a
  • r
  • e
  • f
  • u
  • l
  • !
Previously: Lesson 24 compared volume types.
Today: You learned: All the docker volume commands you need.
Next: Lesson 26 covers backup.
Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments