{% extends "layout.html" %} {% block body %}
| COMPOSE PROJECT | CONTAINER ID | NAME | COMMAND | CREATED | STATUS | PORTS | IMAGE | |
|---|---|---|---|---|---|---|---|---|
| {% if container.attrs.Config.Labels|length and container.attrs.Config.Labels['com.docker.compose.config-hash'] %} {{ container.attrs.Config.Labels['com.docker.compose.project'] }} {% endif%} | {{ container.short_id }} | {{ container.name }} | {{ container.attrs['Config']['Entrypoint'][0] }} | {{ container.attrs['Created'][0:19] }} | {{ container.status }} | {% for port in container.attrs['NetworkSettings']['Ports'] %} {{ port }} {% if container.attrs['NetworkSettings']['Ports'][port] is not none %} {% if container.attrs['NetworkSettings']['Ports'][port] is not none and container.attrs['NetworkSettings']['Ports'][port]|length > 0 %} {% for port_exposed in container.attrs['NetworkSettings']['Ports'][port] %} ->{{ port_exposed['HostIp'] }}:{{ port_exposed['HostPort'] }} {% endfor %} {% endif %} {% endif %} {% endfor %} | {{ container.attrs['Config']['Image'] }} | log export stop remove {% if container.status == 'running' %} top {% endif %} |
| no containers | ||||||||