Extend Docker using Python
summary
Explains how to extend Docker by calling the Docker REST API with requests or by using the official docker SDK (python) (pip install docker). Shows concrete code: list images, wrap image objects, pretty-print sizes/dates, and implement a garbage-collector that scores images by age and dangling status and deletes by ID. Describes extension alternatives (custom runC, containerd, or plugins: volume/network/auth/logging) and using docker events to auto-log or add containers to a load balancer.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 7:01Docker Image API
- 10:11Garbage Collector
- 13:48Docker SDK
- 15:19Docker Events
- 16:54Monitoring Docker
related talks
33mDon’t Use Docker... Better More Python
26mHow to containerize Python applications with Docker
06mWhat are Docker Extensions
27mDocker + Python
30mHow to Create a Great Local Python Development Environment with Docker
40mDocker and Python: making them play nicely and securely for Data Science and ML
42mMaking Docker & Python Play Nicely and Securely for Machine Learning & Data Science
25mLeveraging Docker to Enable Learning
