summaryrefslogtreecommitdiff
path: root/docs/reference/commandline/volume_create.md
diff options
context:
space:
mode:
authorKai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>2015-11-09 02:17:50 -0600
committerKai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>2015-11-09 02:17:50 -0600
commita874ce08f3742d219f105a8b3d5cb7f37544824b (patch)
treea59df94355453039d40c3c0416e6e3c0cdd75f51 /docs/reference/commandline/volume_create.md
parent944dc7fa8f2a91fef664e858d53d6bb7d3796266 (diff)
downloaddocker-a874ce08f3742d219f105a8b3d5cb7f37544824b.tar.gz
Fixing wrong volume doc format
Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>
Diffstat (limited to 'docs/reference/commandline/volume_create.md')
-rw-r--r--docs/reference/commandline/volume_create.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/reference/commandline/volume_create.md b/docs/reference/commandline/volume_create.md
index 8307254320..f91c1e415c 100644
--- a/docs/reference/commandline/volume_create.md
+++ b/docs/reference/commandline/volume_create.md
@@ -21,9 +21,10 @@ parent = "smn_cli"
Creates a new volume that containers can consume and store data in. If a name is not specified, Docker generates a random name. You create a volume and then configure the container to use it, for example:
- $ docker volume create --name hello
- hello
- $ docker run -d -v hello:/world busybox ls /world
+ $ docker volume create --name hello
+ hello
+
+ $ docker run -d -v hello:/world busybox ls /world
The mount is created inside the container's `/world` directory. Docker does not support relative paths for mount points inside the container.
@@ -41,7 +42,7 @@ If you specify a volume name already in use on the current driver, Docker assume
Some volume drivers may take options to customize the volume creation. Use the `-o` or `--opt` flags to pass driver options:
- $ docker volume create --driver fake --opt tardis=blue --opt timey=wimey
+ $ docker volume create --driver fake --opt tardis=blue --opt timey=wimey
These options are passed directly to the volume driver. Options for
different volume drivers may do different things (or nothing at all).