def start(container_id): try: docker.start_container(container_id) print '%s %s' % (ok(), 'Container %s started' % container_id) print 'Waiting for database to boot...' time.sleep(5) return test(container_id) except Exception, e: print '%s %s' % (ko(), e)
def start(c_id): docker.start_container(c_id) flash('Server successfully started.', 'success') return redirect(url_for('index'))