mirror of https://github.com/docker/docker-py.git
Updated using volumes (binds)
bindings of volumes is called 'binds' not 'bindings' https://github.com/dotcloud/docker-py/blob/master/docker/client.py#L640
This commit is contained in:
parent
fd38b0e7e7
commit
761a97546f
|
@ -277,7 +277,7 @@ c.create_container('busybox', 'ls', volumes=['/mnt/vol1', '/mnt/vol2'])
|
|||
Volume mappings are then declared inside the `Client.start` method like this:
|
||||
|
||||
```python
|
||||
c.start(container_id, bindings={
|
||||
c.start(container_id, binds={
|
||||
'/mnt/vol2': '/home/user1/',
|
||||
'/mnt/vol1': '/var/www'
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue