adding response container_id to make the example clearer.

Without this, c.start refers to container_id, which has not been introduced before
This commit is contained in:
kenden 2015-03-09 15:43:13 +01:00
parent 6fac5fd47c
commit 144f11d4e0
1 changed files with 1 additions and 1 deletions

View File

@ -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.