def remove(container_id): try: if prompt_bool("Are you sure?"): docker.remove_container(container_id) print '%s %s' % (ok(), 'Container %s removed' % container_id) except Exception, e: print '%s %s' % (ko(), e)
def remove(c_id): docker.remove_container(c_id) flash('Server successfully removed.', 'success') return redirect(url_for('index'))