add extralabel for docker
This commit is contained in:
parent
215a0df6a7
commit
73ffee9750
@ -23,5 +23,6 @@ nomad_host_networks:
|
||||
# reserved_ports:
|
||||
nomad_allow_privileged: False
|
||||
nomad_plugins_podman: False
|
||||
nomad_docker_extra_labels: []
|
||||
nomad_docker_allow_caps: []
|
||||
nomad_client_network_interface:
|
||||
|
@ -47,6 +47,9 @@ plugin "docker"{
|
||||
{%if 'nomad_docker_allow_caps' %}
|
||||
allow_caps = [ "{{nomad_docker_default_caps|join('","')}}","{{nomad_docker_allow_caps|join('","')}}"]
|
||||
{% endif %}
|
||||
{%if 'nomad_docker_extra_labels' %}
|
||||
extra_labels = [ "{{nomad_docker_extra_labels|join('","')}}" ]
|
||||
{% endif %}
|
||||
allow_privileged = {{ nomad_allow_privileged|lower }}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user