mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Fix syntax for passing options to volume create
This commit is contained in:
committed by
GitHub
parent
fd9cfbe0a5
commit
13dc8451cf
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user