By design, Docker containers do not store persistent data. Any data written to a container’s writable layer will no longer be available once the container stops running. Also, getting data written to a container back out of it for another process can be difficult. To solve the issue of persisting data from a container docker uses volumes
docker volume ls command will show all volumes

/var/lib/docker/volumes/
-v vikivol:/vol and --mount source=<vol_name>,target=<cont_mnt_dir> are same however mount is preferred)
