{% extends 'layouts/base.html' %} {% import 'macros/form_macros.html' as f %} {# set deletion_endpoint = 'containers.delete_container_request' #} {% set endpoints = [ ('apps.container_info', 'Container Information'), ] %} {% macro navigation(items) %} {% endmacro %} {# Show data for container #} {% macro container_info(container) %}
General
Container Name{{ container.name }}
Container ID{{ container.short_id }}
Container Image{{ container.image.tags[0] }}
Container Status{{ container.status }}
Actions
Start Stop Kill Restart Remove
Networking
Container Ports {% for port in container.ports.values() %} {% if port %} {% for entry in port %} {{entry.get('HostIp')}}:{{entry.get('HostPort')}}, {% endfor %} {% endif %} {% endfor %}
Container IP{{ container.attrs.NetworkSettings.get('IPAddress') }}
Volumes
{% for mount in container.attrs.Mounts %} {% if mount %} {% endif %} {% endfor %} {% endmacro %} {% block content %}
Back to all containers

{{ container.name }}
View and manage {{ container.name }}.

{{ navigation(endpoints) }}
{# Show deletion tab if it's clicked on #} {% if request.endpoint == deletion_endpoint %}

This action is permanent
Deleting a container is not a reversible change. Any apps associated with this container will be removed, and cannot be recovered.

Delete this container
{% elif form %} {# Not currently used #} {{ f.render_form(form) }} {% else %} {# Show container info listed above #} {{ container_info(container) }} {% endif %}
{% endblock %}
Container Path Host Path
{{ mount.get('Destination') }} {{ mount.get('Source') }}