Using mount for volumes

Commands

docker container run -it --mount destination=/data alpine:latest
docker container run -it --mount src=my-volume,destination=/data alpine:latest
docker container run -it --mount src=my-volume,destination=/data,readonly alpine:latest
docker container run -it --mount destination=/data alpine:latest
docker container run -it --mount dst=/data alpine:latest

Naming volumes

Managing volumes