golang-docker-containerd

Manage Docker and containerd containers with Go for lifecycle, monitoring, and image building.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ep0ll/bons-ci --skill golang-docker-containerd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-docker-containerd
Source: https://github.com/ep0ll/bons-ci/tree/main/.agents/skills/docker-containerd
Command: npx skills add https://github.com/ep0ll/bons-ci --skill golang-docker-containerd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

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.

Frequently Asked Questions about golang-docker-containerd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Docker and containerd containers using Go?

To manage Docker and containerd containers using Go, use this Skill to establish secure API client connections, execute lifecycle operations, and monitor real-time runtime stats within production environments.

How do I stream real-time container stats like CPU and memory in a Go application?

Streaming real-time container stats in a Go application is handled by the runtime metrics feature, which captures live CPU, memory, network, and disk I/O data directly from the Docker or containerd runtime.

Can I programmatically build OCI-compliant container images in Go?

Yes, you can programmatically build OCI-compliant container images in Go by utilizing the Skill's image operations component, which supports precise metadata generation, cache optimization, and multi-stage Dockerfile best practices.

What is the best way to monitor container events such as start and die with automatic reconnection?

Monitoring container events with automatic reconnection is achieved through the event streaming feature, which tracks health status and lifecycle changes like start and die events while maintaining a persistent connection to the daemon.

Does this approach support running commands inside containers and capturing the exit status?

Running commands inside containers and capturing the exit status is fully supported, allowing you to securely execute operations within the container environment and efficiently retrieve the output for automation workflows.