Member-only story

Docker volumes — How to manage data in docker — DevOps4Solutions

Nidhi
5 min readSep 15, 2020

--

Check out my video for this article

For more article, check out my blog https://devops4solutions.com/

In this blog, we will see what is docker volumes and why do we need to use volumes. We will explore options for the data storage in docker. How we can persist the data using docker volumes?

If you do not know about Docker, refer my docker article for the basic understanding

Three types of storage is present in docker

  1. bind mount
  2. tmpfs mount
  3. volume — is the most preferred mechanism for persist the data

In the below diagram, we have

  1. Host machine where docker is installed
  2. bind mount — which uses the filesystem of your local docker host machine to persist/store your data
  3. tmpfs mount — This works only for Docker on linux.This is temporary and only persist in the host memory.
  4. volumes — Volumes are stored in the Docker area and managed by Docker only

--

--

Nidhi
Nidhi

Written by Nidhi

Devops Automation Enginneer

No responses yet