mirror of https://github.com/docker/docker-py.git
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:
parent
144f11d4e0
commit
9bf3efb90b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue