docker swarm copy file from volume at run time code example
Example 1: docker create volume
$ docker volume create hello
hello
$ docker run -d -v hello:/world busybox ls /world
Example 2: docker create volume
docker volume create [OPTIONS] [VOLUME]