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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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