def list_container(): containers = Containers.query.all() for c in containers: c.status = container_status(c.name) c.ports = ", ".join(container_ports(c.name, verbose=True)) return render_template('admin/containers.html', containers=containers)