Docker privileged checks if host enabled it

This commit is contained in:
Alex Dadgar
2015-11-06 10:38:54 -08:00
parent 638f78e48c
commit 325de0ec35
2 changed files with 13 additions and 4 deletions

View File

@@ -34,8 +34,8 @@ The `docker` driver supports the following configuration in the job specificatio
* `privileged` - (optional) Privileged mode gives the container full access to
the host. Valid options are `"true"` and `"false"` (defaults to `"false"`).
In order to use privileged mode, a client with the option
`docker.privileged.enabled = "true"` must be available.
Tasks with `privileged` set can only run on Nomad Agents with
`docker.privileged.enabled = "true"`.
* `dns-servers` - (optional) A comma separated list of DNS servers for the container
to use (e.g. "8.8.8.8,8.8.4.4"). *Docker API v1.10 and above only*
@@ -143,7 +143,7 @@ The `docker` driver has the following configuration options:
* `docker.privileged.enabled` Defaults to `false`. Changing this to `true` will
allow containers to use "privileged" mode, which gives the containers full access
to the host
to the host.
Note: When testing or using the `-dev` flag you can use `DOCKER_HOST`,