Member-only story
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
- bind mount
- tmpfs mount
- volume — is the most preferred mechanism for persist the data
In the below diagram, we have
- Host machine where docker is installed
- bind mount — which uses the filesystem of your local docker host machine to persist/store your data
- tmpfs mount — This works only for Docker on linux.This is temporary and only persist in the host memory.
- volumes — Volumes are stored in the Docker area and managed by Docker only