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

No containers reported yet.

{% else %}
{{ running_count }} running
{{ failed_24h }} failed (24h)
{# Swarm services — collapsed, each with its replicas' host chips (dashed = a node with no Steward agent, count-only from placement). #} {% if swarm_services %}
Swarm services
{% for s in swarm_services %}
{{ s.name }} {{ s.running }}/{{ s.desired }}
{% for r in s.replicas %} {% if r.ghost %} {{ r.host }} ×{{ r.count }} {% else %} {{ r.host }} {% endif %} {% endfor %}
{% endfor %}
{% 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 %}