What are the different volume mount types available in docker?

0 votes
I'm a bit confused with the different types of volume mounts in docker.Could you please explain?
Jul 4 in Docker by Nizam
624 views

1 answer to this question.

0 votes

There are three mount types available in Docker   

  •  Volumes are stored in a part of the host filesystem which is managed by Docker (/var/lib/docker/volumes/ on Linux). Non-Docker processes should not modify this part of the filesystem. Volumes are the best way to persist data in Docker.
  • Bind mounts may be stored anywhere on the host system. They may even be important system files or directories. Non-Docker processes on the Docker host or a Docker container can modify them at any time.
  • tmpfs mounts are stored in the host system’s memory only, and are never written to the host system’s filesystem.

    An easy way to visualize the difference among volumes, bind mounts, and tmpfs mounts is to think about where the data lives on the Docker host.

answered Jul 4 by Sirajul
• 39,540 points

Related Questions In Docker

0 votes
1 answer

What is the difference between “expose” and “publish” in Docker?

Basically, you have three options: Neither specify EXPOSE nor -p -> ...READ MORE

answered Jul 18, 2018 in Docker by Nilesh
• 6,880 points
449 views
0 votes
1 answer

What are the pre-requisites to install docker?

Docker installation on Ubuntu requires the following: One ...READ MORE

answered Feb 21 in Docker by Sushith
65 views
0 votes
0 answers

what is the use of docker history command in Docker?

I am trying to find the initial ...READ MORE

Jun 19 in Docker by Shubham
• 1,000 points
49 views
0 votes
1 answer

Mount a volume and run a docker container in read-only mode

You can achieve this using the following $ ...READ MORE

answered Jul 3 in Docker by Sirajul
• 39,540 points
195 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,940 points
232 views
0 votes
1 answer

what are the different types of docker networking drivers ?

Docker’s networking subsystem is pluggable using drivers. ...READ MORE

answered Jul 5 in Docker by Sirajul
• 39,540 points
44 views
0 votes
1 answer

How does save and export command work in docker and how are they different from one another?

Export : Export is used to persist a ...READ MORE

answered Jul 2 in Docker by Sirajul
• 39,540 points

edited Jul 2 by Sirajul 52 views