From 13dc8451cff93b81b4ae9cdc2b01ecf1fdcc6be9 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Thu, 17 Nov 2016 11:38:47 -0800 Subject: [PATCH] Fix syntax for passing options to `volume create` --- engine/tutorials/dockervolumes.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/tutorials/dockervolumes.md b/engine/tutorials/dockervolumes.md index 9283c376e5..f7f007abb2 100644 --- a/engine/tutorials/dockervolumes.md +++ b/engine/tutorials/dockervolumes.md @@ -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==`. ```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). \ No newline at end of file +Go to [Store images in Docker Hub](dockerrepos.md).