import docker client = docker.from_env() print(client.containers.run("itzg/minecraft-server", detach=True))