1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Docker

Connected

Exercise

Creating a container volume

After working with your team on file sharing and bind-mounts, your team lead asks you to experiment with Docker volumes. She would like you to try a few different scenarios for creating and managing container volumes to see what works best for your project.

Instructions 1/3

undefined XP
  • 1
    • Create a Docker volume named validation_test.
  • 2
    • Obtain a list of your volumes with the appropriate command.
  • 3
    • Start a new ubuntu:24.04 container and attach the validation_test volume to /data in the container.