24 lines
419 B
HCL
24 lines
419 B
HCL
plugin "docker" {
|
|
config {
|
|
# extra Docker labels to be set by Nomad on each Docker container with the appropriate value
|
|
extra_labels = ["job_name", "task_group_name", "task_name", "namespace", "node_name"]
|
|
|
|
volumes {
|
|
enabled = true
|
|
}
|
|
|
|
allow_privileged = true
|
|
}
|
|
}
|
|
|
|
client {
|
|
host_volume "docker-sock" {
|
|
path = "/var/run/docker.sock"
|
|
}
|
|
|
|
host_volume "tmp" {
|
|
path = "/tmp"
|
|
}
|
|
}
|
|
|