June 2015
Intermediate to advanced
240 pages
5h 25m
English
In the previous section, we learnt how seamlessly the Docker engine enables data sharing between the Docker host and the container. Even though it is a very effective solution, it tightly couples the container to the host filesystem. These directories might leave a nasty footprint because the user has to manually remove them once their purpose is met. So, the Docker's prescription to solve this issue is to create data-only containers as a base container, and then mount the Data Volume of that container to other containers using the --volume-from option of the docker run subcommand.
The prime responsibility of a data-only container is to preserve the data. Creating a data-only container is very ...
Read now
Unlock full access