summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkenden <quentin.nerden@stylight.com>2015-03-09 15:43:13 +0100
committerkenden <quentin.nerden@stylight.com>2015-03-09 15:43:13 +0100
commit144f11d4e03cb1867031f5176dae302ba2abaafa (patch)
tree31f3082c6d32fe8d7d666a9be7bd8201b773cbdd
parent6fac5fd47c6dbd19257744b9aba0157cb1a68d90 (diff)
downloaddocker-py-144f11d4e03cb1867031f5176dae302ba2abaafa.tar.gz
adding response container_id to make the example clearer.
Without this, c.start refers to container_id, which has not been introduced before
-rw-r--r--docs/port-bindings.md2
1 files changed, 1 insertions, 1 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.