mirror of https://github.com/docker/docker-py.git
Merge pull request #127 from daniellawrence/patch-1
Updated using volumes (binds)
This commit is contained in:
commit
20a2c23bc2
|
@ -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