docker-py is a Python library and SDK that serves as a programmatic client for the Docker Engine API. It provides a programmatic interface for controlling containers, images, and clusters, allowing for the automation of containerized applications and engine resources.
The library enables remote Docker administration through various transport methods, including Unix domain sockets, TCP ports, and encrypted SSH tunnels. It handles real-time data links by using WebSockets to stream input and output from active containers.
The project covers container lifecycle control, image management for building and distributing images to registries, and cluster orchestration for coordinating services across distributed nodes. It also includes capabilities for real-time container monitoring and log streaming.