Answers for "how to set volume in dockerfile"

1

docker create volume

$ docker volume create hello

hello

$ docker run -d -v hello:/world busybox ls /world
Posted by: Guest on October-05-2020
0

mount file to volume docker

# mounting a file from a running container
docker cp <container-name>:</path/you/want/to/mount> </your/volume/path>
Posted by: Guest on November-13-2021

Python Answers by Framework

Browse Popular Code Answers by Language