mirror of https://github.com/docker/docs.git
Merge pull request #627 from docker/325_volume_create_opt_syntax
Fix syntax for passing options to `volume create`
This commit is contained in:
commit
951b19a398
|
@ -190,10 +190,11 @@ You may also use the `docker volume create` command, to create a volume before
|
||||||
using it in a container.
|
using it in a container.
|
||||||
|
|
||||||
The following example also creates the `my-named-volume` volume, this time
|
The following example also creates the `my-named-volume` volume, this time
|
||||||
using the `docker volume create` command.
|
using the `docker volume create` command. Options are specified as key-value
|
||||||
|
pairs in the format `o=<key>=<value>`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker volume create -d flocker -o size=20GB my-named-volume
|
$ docker volume create -d flocker --opt o=size=20GB my-named-volume
|
||||||
|
|
||||||
$ docker run -d -P \
|
$ docker run -d -P \
|
||||||
-v my-named-volume:/webapp \
|
-v my-named-volume:/webapp \
|
||||||
|
|
Loading…
Reference in New Issue