add docs for mount

This commit is contained in:
Clint Armstrong 2017-08-21 15:32:44 -04:00
parent 9933ea3a2c
commit 3cdcbc5c6b

View file

@ -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