Let us have a look at how to mount a directory from your host machine on a docker container as volume.
This allows you to mount a volume to a docker container wherein you can store data such that it remains intact (persistent) even if the container dies (i.e. the container stops or is deleted)