diff --git a/website/source/docs/drivers/docker.html.md b/website/source/docs/drivers/docker.html.md index 44c5d6e47..3d525c083 100644 --- a/website/source/docs/drivers/docker.html.md +++ b/website/source/docs/drivers/docker.html.md @@ -255,6 +255,36 @@ The `docker` driver supports the following configuration in the job spec. Only ``` * `work_dir` - (Optional) The working directory inside the container. +* +* `mounts` - (Optional) A list of + [mounts](https://docs.docker.com/engine/reference/commandline/service_create/#add-bind-mounts-or-volumes) + to be mounted into the container. Only volume type mounts are supported at this + time. + + ```hcl + config { + mounts = [ + { + target = "/path/in/container" + source = "name-of-volume" + type = "volume" + readonly = false + volume_options { + no_copy = false + labels { + foo = "bar" + } + driver_config { + name = "flocker" + options = { + foo = "bar" + } + } + } + } + ] + } + ``` ### Container Name