Docker
Docker Fundamentals - Persisting Data

Using Mount for Volumes

PRO

Using Mount for Volumes

You can create volumes using the --mount command with the type=volume key-value pair:

$ docker container run --mount type=volume,src=[volume name],destination=/data,readonly [image]:[tag]