From 0932ac230ba5ca8ef13b77be89e2882b9386c24d Mon Sep 17 00:00:00 2001 From: Joffrey F <joffrey@docker.com> Date: Thu, 8 Oct 2015 17:28:43 -0700 Subject: [PATCH] Add devices param to the hostconfig documentation Signed-off-by: Joffrey F <joffrey@docker.com> --- docs/hostconfig.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/hostconfig.md b/docs/hostconfig.md index 39b7a23..9bd42c9 100644 --- a/docs/hostconfig.md +++ b/docs/hostconfig.md @@ -101,6 +101,14 @@ for example: allowed to consume. * group_add (list): List of additional group names and/or IDs that the 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 -- 2.18.1