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:
Daniel 2013-12-23 10:28:43 +11:00
parent fd38b0e7e7
commit 761a97546f
1 changed files with 1 additions and 1 deletions

View File

@ -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'
})