def stop(container_id): try: docker.stop_container(container_id) print '%s %s' % (ok(), 'Container %s stopped' % container_id) except Exception, e: print '%s %s' % (ko(), e)
def stop(c_id): docker.stop_container(c_id) flash('Server successfully stopped.', 'success') return redirect(url_for('index'))