def run_steps(container, steps, out=sys.stdout):
    container.start()
    try:
        for commands in steps:
            status = container.execute(commands, out)
            if status != 0:
                return status
    finally:
        container.stop()
    return 0
Run a sequence of commands in a container.
dataset/ETHPy150Open ClusterHQ/flocker/admin/client.py/run_steps