Difficulty: Beginner
Estimated Time: 10 minutes

In this scenario, you'll learn how to use Docker Volumes to persistent data within Containers. Docker Volumes allow directories to be shared between containers and container versions.

Docker Volumes allows you to upgrade containers, restart machines and share data without data loss. This is essential when updating database or application versions. We will also discuss alternative approach which is to use Data Containers.

In this scenario, we explored how to use docker volumes to persistent data within Containers.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Docker Volumes And Filesytem

Step 1 of 9

Step 1 - Docker FileSystem Overview

We will first understand how Docker builds and stores images and how these images are used by containers. Finally, you’ll need a short introduction to the technologies that enable both images and container operations.

A Docker image is built up from a series of layers. Each layer represents an instruction in the image’s Dockerfile

A storage driver handles the details about the way these layers interact with each other. Different storage drivers are available, which have advantages and disadvantages in different situations.

By default, docker stores everything in ls /var/lib/docker on the docker host.