Difference between docker bind mount and docker volumes
One of the major design challenge you face while running your applications and services on docker containers is how to persist data. By default the docker containers do not store persistent data. Data is linked to the lifecycle of the container. To overcome the above challenge, persist data and de-link it from the lifecycle of the container docker provides two options 1. Bind Mounts 2. Volumes In this blog post I would be discussing in detail the above two methods to persist data while using containers with the pros and cons of using each approach. Bind Mounts Volumes A file/folder stored anywhere on the container host filesystem, mounted on a running container Preferred way to store persistent data Can exist anywhere on the filesystem Docker volumes exist at specific location within the filesystem. For Ubuntu they are at /var/lib/docker/volumes Processes outside of docker can also modify it Doc...