{# docker/rows.html — HTMX fragment for the Docker main page, grouped by host #} {# ── Summary strip ─────────────────────────────────────────────────────────── #}
Running
{{ running }}
Stopped
{{ stopped }}
Total
{{ total }}
Hosts
{{ host_groups | length }}
{# ── Container tables, one per host ───────────────────────────────────────── #} {% if host_groups %} {% for g in host_groups %}
{% if g.host %} {{ g.host.name }} {% else %} {{ g.host_name }} {% endif %} {{ g.running }} running{% if g.stopped %} · {{ g.stopped }} stopped{% endif %}
{% for item in g.containers %} {% set c = item.container %} {% endfor %}
Container Image Ports CPU % CPU history Mem % Mem history
{{ c.name }}
{{ c.status }}
{{ c.image }} {% for p in item.ports %}
{{ p.host_port }}:{{ p.container_port }}/{{ p.protocol }}
{% endfor %}
{% if c.cpu_pct is not none %} {{ "%.1f" | format(c.cpu_pct) }}% {% else %} {% endif %} {{ item.sparkline_cpu | safe }} {% if c.mem_pct is not none %} {{ "%.1f" | format(c.mem_pct) }}% {% else %} {% endif %} {{ item.sparkline_mem | safe }}
{% endfor %} {% else %}
No containers reported yet. Containers are collected by the Steward host agent — deploy the agent to a host running Docker (Hosts → the host → agent panel) and its containers will appear here under that host.
{% endif %}