how to create a docker volume within a docker container 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]