Docker data volume management
One of the main aspects of the container that we haven't discussed until now is the container's data volume management. In this section, we are going to see some basic concepts of container data volume management, some of the major problems in data volume management, and their solutions.
As you may be aware, the docker container provides two different ways of managing the data volumes as:
Data volumes
Data volume containers
The preceding two mechanisms provide various ways for storing the data in a persistent volume, a way to mount a host directory as a data volume, a way to mount a host file as a data volume, and so on. This works well until the containers are tied to a particular node/server in the cluster.
When the container is moving from one server to another server, the data volume should also be moved. Typically, the data volume won't be moved when the container is moved from one node to another. This is because the docker/orchestration...