What problem does it solve?
This Skill streamlines the integration and management of Docker and containerd within Go applications, simplifying container lifecycle operations and monitoring.
Core Features & Use Cases
- Docker API Client: Establishes secure connections and pings Docker daemon to verify accessibility.
- Container Lifecycle Management: Defines configuration, security, and resource policies for container creation and execution.
- Image Operations: Supports pulling, inspecting, and building container images with detailed progress reporting and cache optimization.
- Runtime Metrics & Stats: Streams real-time container stats including CPU, memory, network, and disk I/O.
- Execution & Commands: Runs commands inside containers, capturing output and exit status efficiently.
- Event Streaming: Monitors container events such as start, die, and health status with automatic reconnection.
- containerd Client & Management: Connects to containerd for advanced container orchestration, including snapshot management, OCI spec generation, and clean resource handling.
- OCI Image Building: Programmatically creates OCI-compliant container images with precise metadata.
- Multi-stage Dockerfile & Overlay Filesystem: Provides best practices for secure, efficient, and reproducible container images and performance-oriented overlay filesystem handling.
- Build Automation & Security: Implements multi-stage build, security configurations, resource limits, and efficient caching for production-grade container deployment.
Quick Start
Use the docker-containerd skill to create a container with a specified image, run commands inside it, and monitor its resource usage in real-time.