From 14d7dbbf34cdcf3e890a3bcc64de1321a1121aa9 Mon Sep 17 00:00:00 2001 From: Andrew Meredith Date: Thu, 2 Sep 2021 15:57:31 -0600 Subject: [PATCH] Clarify devices format Updates the description of `services.devices` to clarify which segment is the host path and which is the container path. It also indicates the optional third element, which is used to supply cgroup permissions and is supported by Docker Compose. Signed-off-by: Andrew Meredith --- spec.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec.md b/spec.md index 4932e287..0728afe8 100644 --- a/spec.md +++ b/spec.md @@ -636,11 +636,13 @@ device_cgroup_rules: ### devices -`devices` defines a list of device mappings for created containers. +`devices` defines a list of device mappings for created containers in the form of +`HOST_PATH:CONTAINER_PATH[:CGROUP_PERMISSIONS]`. ```yml devices: - "/dev/ttyUSB0:/dev/ttyUSB0" + - "/dev/sda:/dev/xvda:rwm" ``` ### dns