{# docker/container_detail.html — one container (#5310), shaped like a service's page: a header that says whether it is well and what it is; why it stopped, only while it has; what it moved since it started; its CPU and memory over time (the one home for what it uses now); its lifecycle. A swarm task is titled by its service and slot, the raw name under it. #} {% extends "base.html" %} {% from "_macros.html" import crumbs, status_badge %} {% block title %}{{ label or name }} — Docker — Steward{% endblock %} {% block breadcrumb %} {%- if container is not none and container.service_name -%} {{ crumbs([("Docker", "/plugins/docker/"), (container.service_name, "/plugins/docker/service/" ~ container.service_name), (label, "")]) }} {%- else -%} {{ crumbs([("Docker", "/plugins/docker/"), (label or name, "")]) }} {%- endif -%} {% endblock %} {% block content %} {% if container is none %}
{{ name }} is reported for this host now. It may have been
removed, or the host agent has not reported recently. Back to Docker
{% if c.status == 'running' %}{{ status_badge('ok', 'Running') }} {% elif c.status == 'restarting' %}{{ status_badge('crit', 'Restarting') }} {% elif c.status == 'paused' %}{{ status_badge('warn', 'Paused') }} {% elif exit_failed %}{{ status_badge('crit', c.status|capitalize) }} {% else %}{{ status_badge('dim', c.status|capitalize) }}{% endif %} {%- if c.health == 'unhealthy' %} {{ status_badge('crit', 'Unhealthy') }} {%- elif c.health == 'starting' %} {{ status_badge('pending', 'Starting') }} {%- elif c.health == 'healthy' %} {{ status_badge('ok', 'Healthy') }}{% endif %} {%- if uptime %} · up {{ uptime }}{% endif %} {%- if host %} · on {{ host.name }}{% endif %} {%- if c.service_name %} · task of {{ c.service_name }} {%- elif c.compose_project %} · compose {{ c.compose_project }}{% endif %} {%- if c.image %} · {{ c.image.split("@")[0] }}{% endif %}
{%- if label != c.name %}{{ c.name }} · {% endif -%} {%- if c.scraped_at %}reported {{ c.scraped_at|ago }}{% endif -%}
Exited {{ c.exit_code }}{% if c.oom_killed %}: killed for running out of memory{% endif %} {%- if died_at %} · {{ died_at|ago }}{% endif %} · its logs →
Loading…
| Event | Detail | When |
|---|---|---|
| {{ e.event|replace("_", " ") }} | {{ e.detail or "" }} | {{ e.at|ago }} |
No lifecycle events recorded yet. Starts, stops and health changes appear here as the agent reports them.
{% endif %}