docker-wrapper-py Build Coverage Latest Version Supported Python versions

Quickstart

Install

Install docker-wrapper with pip:

pip install docker-wrapper

Usage

Use it in a with statement:

with Docker() as docker:
    docker.exec('command')

or as a decorator:

@Docker.wrap()
def run_command_in_container(command, docker)
    docker.exec(command)

Contents: