The Commands

This lesson lists all the relevant Docker volume commands with brief reminders of what each one does.

The summary of commands for Volumes and Persistent Data

  • 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 lists all volumes on your Docker host.

  • docker volume inspect shows you detailed volume information. You can use this command to see where a volume exists in the Docker host’s filesystem.

Get hands-on with 1300+ tech skills courses.