adding response container_id to make the example clearer.

Without it, c.start refer to container_id, which has not been introduced before.
This commit is contained in:
kenden 2015-03-09 15:44:24 +01:00
parent 144f11d4e0
commit 9bf3efb90b
1 changed files with 1 additions and 1 deletions

View File

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