docker - PyPI
https://pypi.org/project/docker07.10.2021 · A Python library for the Docker Engine API. It lets you do anything the docker command does, but from within Python apps – run containers, manage containers, manage Swarms, etc. Installation The latest stable version is available on PyPI. Either add docker to your requirements.txt file or install with pip: pip install docker
docker · PyPI
pypi.org › project › dockerOct 07, 2021 · Either add docker to your requirements.txt file or install with pip: pip install docker If you are intending to connect to a docker host via TLS, add docker[tls] to your requirements instead, or install with pip: pip install docker[tls] Usage. Connect to Docker using the default socket or the configuration in your environment: import docker client = docker. from_env ()