add extralabel for docker

This commit is contained in:
vincent 2023-11-28 18:22:47 +01:00
parent 215a0df6a7
commit 73ffee9750
2 changed files with 4 additions and 0 deletions

View File

@ -23,5 +23,6 @@ nomad_host_networks:
# reserved_ports: # reserved_ports:
nomad_allow_privileged: False nomad_allow_privileged: False
nomad_plugins_podman: False nomad_plugins_podman: False
nomad_docker_extra_labels: []
nomad_docker_allow_caps: [] nomad_docker_allow_caps: []
nomad_client_network_interface: nomad_client_network_interface:

View File

@ -47,6 +47,9 @@ plugin "docker"{
{%if 'nomad_docker_allow_caps' %} {%if 'nomad_docker_allow_caps' %}
allow_caps = [ "{{nomad_docker_default_caps|join('","')}}","{{nomad_docker_allow_caps|join('","')}}"] allow_caps = [ "{{nomad_docker_default_caps|join('","')}}","{{nomad_docker_allow_caps|join('","')}}"]
{% endif %} {% endif %}
{%if 'nomad_docker_extra_labels' %}
extra_labels = [ "{{nomad_docker_extra_labels|join('","')}}" ]
{% endif %}
allow_privileged = {{ nomad_allow_privileged|lower }} allow_privileged = {{ nomad_allow_privileged|lower }}
} }
} }