github.com/tompao/docker@v1.9.1/man/docker-volume-create.1.md (about) 1 % DOCKER(1) Docker User Manuals 2 % Docker Community 3 % JULY 2015 4 # NAME 5 docker-volume-create - Create a new volume 6 7 # SYNOPSIS 8 **docker volume create** 9 [**-d**|**--driver**[=*DRIVER*]] 10 [**--help**] 11 [**--name**[=*NAME*]] 12 [**-o**|**--opt**[=*[]*]] 13 14 # DESCRIPTION 15 16 Creates a new volume that containers can consume and store data in. If a name is not specified, Docker generates a random name. You create a volume and then configure the container to use it, for example: 17 18 ``` 19 $ docker volume create --name hello 20 hello 21 $ docker run -d -v hello:/world busybox ls /world 22 ``` 23 24 The mount is created inside the container's `/src` directory. Docker doesn't not support relative paths for mount points inside the container. 25 26 Multiple containers can use the same volume in the same time period. This is useful if two containers need access to shared data. For example, if one container writes and the other reads the data. 27 28 ## Driver specific options 29 30 Some volume drivers may take options to customize the volume creation. Use the `-o` or `--opt` flags to pass driver options: 31 32 ``` 33 $ docker volume create --driver fake --opt tardis=blue --opt timey=wimey 34 ``` 35 36 These options are passed directly to the volume driver. Options for 37 different volume drivers may do different things (or nothing at all). 38 39 *Note*: The built-in `local` volume driver does not currently accept any options. 40 41 # OPTIONS 42 **-d**, **--driver**="local" 43 Specify volume driver name 44 45 **--help** 46 Print usage statement 47 48 **--name**="" 49 Specify volume name 50 51 **-o**, **--opt**=[] 52 Set driver specific options 53 54 # HISTORY 55 July 2015, created by Brian Goff <cpuguy83@gmail.com>