Video Thumbnail for Lesson
10.3: Volumes

Interacting with Docker Volumes

Throughout the course we have interacted with many different Docker objects. This module covers the additional options for how we can work with them.

Use docker volume --help to see all the subcommands associated with Docker volumes.

Commands

Create

Create a new volume:

docker volume create my-volume

Inspect

Inspect a volume:

docker volume inspect my-volume

List

List all available volumes:

docker volume ls

Prune

Remove all unused volumes:

docker volume prune

Remove

Remove one or more volumes:

docker volume rm my-volume