modules/python/clients/docker_client.py (6 lines of code) (raw):

import docker class DockerClient: def __init__(self): self.client = docker.from_env() def run_container(self, image, command, volumes, detach): return self.client.containers.run(image, command, volumes=volumes, detach=detach)