$ docker volume create --name my-volume
my-volume
$ docker volume ls
DRIVER VOLUME NAME
local my-volume
: 컨테이너와 도커 볼륨 간의 데이터 공유를 위해 사용
$ docker container run --name ubuntu1 --rm --interactive --tty --mount type=volume,source=my-volume,destination=/my-work ubuntu:24.04
root@7e23ee8a1bad:/# echo 'hello World From container, volume' > /my-work/hello.txt
root@7e23ee8a1bad:/# ls /my-work/
hello.txt
root@e8da4457731b:/# cat /my-work/hello.txt
hello World From container, volume
$ docker volume rm my-volume
my-volume
$ docker volume create --name db-volume
db-volume