summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkenden <quentin.nerden@stylight.com>2015-03-09 15:44:24 +0100
committerkenden <quentin.nerden@stylight.com>2015-03-09 15:44:24 +0100
commit9bf3efb90bbeff92eb9acafc4ab92a07ee153b6f (patch)
treeb3bd0a4dc66961593ac61ad16df0e6a7309f2172
parent144f11d4e03cb1867031f5176dae302ba2abaafa (diff)
downloaddocker-py-9bf3efb90bbeff92eb9acafc4ab92a07ee153b6f.tar.gz
adding response container_id to make the example clearer.
Without it, c.start refer to container_id, which has not been introduced before.
-rw-r--r--docs/volumes.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/volumes.md b/docs/volumes.md
index 38ab210..4441b82 100644
--- a/docs/volumes.md
+++ b/docs/volumes.md
@@ -4,7 +4,7 @@ Volume declaration is done in two parts. First, you have to provide
a list of mountpoints to the `Client().create_container()` method.
```python
-c.create_container('busybox', 'ls', volumes=['/mnt/vol1', '/mnt/vol2'])
+container_id = c.create_container('busybox', 'ls', volumes=['/mnt/vol1', '/mnt/vol2'])
```
Volume mappings are then declared inside the `Client.start` method like this: