예제 #1
0
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)
예제 #2
0
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)
예제 #3
0
def remove(c_id):
    docker.remove_container(c_id)
    flash('Server successfully removed.', 'success')
    return redirect(url_for('index'))
예제 #4
0
def remove(c_id):
    docker.remove_container(c_id)
    flash('Server successfully removed.', 'success')
    return redirect(url_for('index'))