summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey F <f.joffrey@gmail.com>2015-03-09 10:34:21 -0700
committerJoffrey F <f.joffrey@gmail.com>2015-03-09 10:34:21 -0700
commitdc16b56c4b8f9d7a07fcfa97709c581204d92d68 (patch)
treeb3bd0a4dc66961593ac61ad16df0e6a7309f2172
parent6fac5fd47c6dbd19257744b9aba0157cb1a68d90 (diff)
parent9bf3efb90bbeff92eb9acafc4ab92a07ee153b6f (diff)
downloaddocker-py-dc16b56c4b8f9d7a07fcfa97709c581204d92d68.tar.gz
Merge pull request #520 from kenden/master
Making examples in doc a bit clearer for volumes and ports_binding
-rw-r--r--docs/port-bindings.md2
-rw-r--r--docs/volumes.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/port-bindings.md b/docs/port-bindings.md
index c8c2b1a..90523f2 100644
--- a/docs/port-bindings.md
+++ b/docs/port-bindings.md
@@ -3,7 +3,7 @@ Port bindings is done in two parts. Firstly, by providing a list of ports to
open inside the container in the `Client().create_container()` method.
```python
-c.create_container('busybox', 'ls', ports=[1111, 2222])
+container_id = c.create_container('busybox', 'ls', ports=[1111, 2222])
```
Bindings are then declared in the `Client.start` method.
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: