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. The latest stable version is available on PyPI. Either add docker to your requirements.txt file or install with pip. To communicate with the Docker daemon, you first need to instantiate a client. The easiest way to do that is by calling the function from_env(). It can also be configured manually by instantiating a DockerClient class. Run and manage containers on the server. You can also create more advanced networks with custom IPAM configurations. Get and list nodes in a swarm. Before you can use these methods, you first need to join or initialize a swarm. Manage plugins on the server. Both the main DockerClient and low-level APIClient can connect to the Docker daemon with TLS.

Features

  • You can run containers
  • You can run containers in the background
  • You can manage containers
  • You can stream logs
  • You can manage images
  • Connect using the default socket or the configuration in your environment

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Docker SDK for Python

Docker SDK for Python Web Site

Other Useful Business Software
Orchestrate Your AI Agents with Zenflow Icon
Orchestrate Your AI Agents with Zenflow

The multi-agent workflow engine for modern teams. Zenflow executes coding, testing, and verification with deep repo awareness

Zenflow orchestrates AI agents like a real engineering system. With parallel execution, spec-driven workflows, and deep multi-repo understanding, agents plan, implement, test, and verify end-to-end. Upgrade to AI workflows that work the way your team does.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Docker SDK for Python!

Additional Project Details

Programming Language

Python

Related Categories

Python Libraries

Registered

2021-09-30