Search⌘ K
AI Features

Chapter Summary: Volumes and Persistent Data

Explore how to manage persistent and non-persistent data in Docker by using volumes. Learn essential volume commands to create, inspect, list, and remove volumes, understand data persistence concepts, and discover how volumes help keep data safe beyond container lifecycles.

We'll cover the following...

Commands

Let’s explore all the commands covered in this chapter:

  • docker volume create creates new volumes. By default, it creates them with the local driver, but you can use the -d flag to specify a different driver.

  • docker volume ls ...