I am running a container with docker-py in Python. Similar to the docs:
import docker client = docker.from_env() contai