Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 951b19a

Browse files
authored
Merge pull request docker#627 from docker/325_volume_create_opt_syntax
Fix syntax for passing options to `volume create`
2 parents 01eca2e + 13dc845 commit 951b19a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

engine/tutorials/dockervolumes.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,11 @@ You may also use the `docker volume create` command, to create a volume before
190190
using it in a container.
191191

192192
The following example also creates the `my-named-volume` volume, this time
193-
using the `docker volume create` command.
193+
using the `docker volume create` command. Options are specified as key-value
194+
pairs in the format `o=<key>=<value>`.
194195

195196
```bash
196-
$ docker volume create -d flocker -o size=20GB my-named-volume
197+
$ docker volume create -d flocker --opt o=size=20GB my-named-volume
197198

198199
$ docker run -d -P \
199200
-v my-named-volume:/webapp \

0 commit comments

Comments
 (0)