Example #1
0
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)
Example #2
0
def stop(c_id):
    docker.stop_container(c_id)
    flash('Server successfully stopped.', 'success')
    return redirect(url_for('index'))
Example #3
0
def stop(c_id):
    docker.stop_container(c_id)
    flash('Server successfully stopped.', 'success')
    return redirect(url_for('index'))
Example #4
0
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)