{
  "auths": {
{% for auth in nomad_conf.client.task_drivers.docker.auths %}
{% if auth.registry is defined and auth.login is defined and auth.password is defined %}
    "{{ auth.registry }}": {
      "auth": "{{ (auth.login ~ ':' ~ auth.password) | b64encode }}"
    }{% if not loop.last %},{% endif %}

{% endif %}
{% endfor %}

  }
}
