diff options
author | Joffrey F <joffrey@docker.com> | 2015-05-08 14:24:53 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2015-05-08 14:24:53 -0700 |
commit | 5af442fb9bfa72d6f928490d2faae414e06af7d5 (patch) | |
tree | 70fd7c0f6630ab6913cd9b987a4d0ecd117d3e70 /docs/host-devices.md | |
parent | 2fd2eebcb06ab253362a2812f56cc31c29157b61 (diff) | |
download | docker-py-deprecate_start_hostconfig.tar.gz |
Removed instances of using host_config in start from docs and examplesdeprecate_start_hostconfig
Diffstat (limited to 'docs/host-devices.md')
-rw-r--r-- | docs/host-devices.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/host-devices.md b/docs/host-devices.md index ae1d32b..f1ee3e1 100644 --- a/docs/host-devices.md +++ b/docs/host-devices.md @@ -1,10 +1,15 @@ # Access to devices on the host If you need to directly expose some host devices to a container, you can use -the devices parameter in the `Client.start` method as shown below +the devices parameter in the `host_config` param in `Client.create_container` +as shown below: ```python -c.start(container_id, devices=['/dev/sda:/dev/xvda:rwm']) +c.create_container( + 'busybox', 'true', host_config=docker.utils.create_host_config(devices=[ + '/dev/sda:/dev/xvda:rwm' + ]) +) ``` Each string is a single mapping using the colon (':') as the separator. So the |