From db2b09e4a037cf5e3f9bf5602bce1166c3cbaf3c Mon Sep 17 00:00:00 2001 From: Samuel BERTHE Date: Wed, 29 Mar 2017 18:52:34 +0200 Subject: [PATCH] doc(docker driver): Adds doc for ulimit and sysctl --- website/source/docs/drivers/docker.html.md | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/website/source/docs/drivers/docker.html.md b/website/source/docs/drivers/docker.html.md index 46c4df5da..266c3caae 100644 --- a/website/source/docs/drivers/docker.html.md +++ b/website/source/docs/drivers/docker.html.md @@ -97,6 +97,34 @@ The `docker` driver supports the following configuration in the job spec. Only * `interactive` - (Optional) `true` or `false` (default). Keep STDIN open on the container. +* `sysctls` - (Optional) A key-value map of sysctl configurations to set to the + containers on start. + + ```hcl + config { + sysctls { + net.core.somaxconn = "16384" + } + } + ``` + +* `ulimits` - (Optional) A key-value map of ulimits configurations to set to the + containers on start. + + ```hcl + config { + ulimits { + nproc = "4242" + nofile = "2048:4096" + } + } + ``` + +* `privileged` - (Optional) `true` or `false` (default). Privileged mode gives + the container access to devices on the host. Note that this also requires the + nomad agent and docker daemon to be configured to allow privileged + containers. + * `ipc_mode` - (Optional) The IPC mode to be used for the container. The default is `none` for a private IPC namespace. Other values are `host` for sharing the host IPC namespace or the name or id of an existing container. Note that