{# docker/widget.html — dashboard widget: container status overview, by host #} {% if running_count == 0 and stopped_count == 0 %}

No containers reported yet.

{% else %}
{{ running_count }} running
{% if stopped_count %}
{{ stopped_count }} stopped
{% endif %}
{% for g in host_groups %} {% if multi_host %}
{{ g.host_name }}
{% endif %}
{% for c in g.containers %}
{{ c.name }}{% if c.health == 'unhealthy' %}{% elif c.health == 'healthy' %}{% endif %}{% if c.restart_count %} ⟳{{ c.restart_count }}{% endif %} {% if c.status != 'running' and c.exit_code is not none and c.exit_code != 0 %} exit {{ c.exit_code }} {% endif %} {% if c.cpu_pct is not none %} {{ "%.1f" | format(c.cpu_pct) }}% {% endif %}
{% endfor %}
{% endfor %} {% endif %}