Skip to content

Commit

Permalink
Merge pull request #3069 from clinta/mount-docs
Browse files Browse the repository at this point in the history
add docs for mount
  • Loading branch information
dadgar authored Aug 21, 2017
2 parents 99bfa41 + 3ee1ca1 commit 993f4d9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions website/source/docs/drivers/docker.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 993f4d9

Please sign in to comment.