mirror of https://github.com/docker/docker-py.git
Add devices param to the hostconfig documentation
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
9697923bca
commit
0932ac230b
|
@ -101,6 +101,14 @@ for example:
|
||||||
allowed to consume.
|
allowed to consume.
|
||||||
* group_add (list): List of additional group names and/or IDs that the
|
* group_add (list): List of additional group names and/or IDs that the
|
||||||
container process will run as.
|
container process will run as.
|
||||||
|
* devices (list): A list of devices to add to the container specified as dicts
|
||||||
|
in the form:
|
||||||
|
```
|
||||||
|
{ "PathOnHost": "/dev/deviceName",
|
||||||
|
"PathInContainer": "/dev/deviceName",
|
||||||
|
"CgroupPermissions": "mrw"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
**Returns** (dict) HostConfig dictionary
|
**Returns** (dict) HostConfig dictionary
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue