Fix syntax for passing options to volume create

This commit is contained in:
Misty Stanley-Jones
2016-11-17 11:38:47 -08:00
committed by GitHub
parent fd9cfbe0a5
commit 13dc8451cf

View File

@@ -187,10 +187,11 @@ You may also use the `docker volume create` command, to create a volume before
using it in a container.
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
$ 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 \
-v my-named-volume:/webapp \
@@ -360,4 +361,4 @@ combine Docker with the services available on
[Docker Hub](https://hub.docker.com) including Automated Builds and private
repositories.
Go to [Store images in Docker Hub](dockerrepos.md).
Go to [Store images in Docker Hub](dockerrepos.md).