{# docker/widget_resources.html — the dashboard Busiest Containers widget (#5253): a verdict naming the busiest, then a table of the top containers by CPU (averaged over the last few minutes, so the order holds still). Each figure carries its unit; the shaded bar behind it is its share of the host's cores, or of the memory limit (the host's memory when none is set). #} {% if not rows %}
| Container | Host | CPU | Memory | ||
|---|---|---|---|---|---|
| {%- if session.user_id %}{{ r.label }}{% else %}{{ r.label }}{% endif -%} | {{ r.host_name }} | {% if u.cores is none %}— | {% else %}{{- "%.2f"|format(u.cores) if u.cores < 1 else "%.1f"|format(u.cores) }} cores | {% endif %} {% if u.mem_bytes is none %}— | {% else %}{{- u.mem_bytes|bytes }} | {% endif %}