Docker
Docker Fundamentals - Persisting Data

Volumes

PRO

Volumes

Running just $ docker container run -it --volume /data [image]:[tag] will mount an anonymous volume to your container at /data.

You can view all volumes with $ docker volume ls

Volumes are managed entirely by Docker, having nothing to do with the host filesystem.