Naming volumes

Commands

docker container run -it --volume my-volume:/data alpine:latest
touch /data/test.file
docker volume ls
docker container run -it --volume my-volume:/data alpine:latest
ls -l /data
docker container rm -f $(docker container ls -aq) # BEWARE - This command will delete ALL containers on the system
docker container ls -a
docker volume ls

Volumes

Using mount for volumes