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

You Might Also Like
All-in-One IT Monitoring - No More Blind Spots Icon
All-in-One IT Monitoring - No More Blind Spots

Stop juggling tools. PRTG gives you a complete, real-time view of your IT: servers, devices, cloud, and more - in one easy dashboard.

Tired of switching between different tools and missing critical alerts? PRTG brings everything together, monitoring your entire IT infrastructure from a single, intuitive interface. Whether it’s servers, switches, printers, or cloud services, you get instant visibility and clear notifications - no technical jargon, no clutter. Set up in minutes, PRTG helps you prevent downtime, reduce stress, and prove your value to your company. Focus on your job, not on chasing issues. Try PRTG and experience true IT peace of mind.
Get Your Unified IT Trial
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