What problem does it solve?
This skill provides guidance on detecting container runtimes, interacting with Docker via CLI and API, instrumenting Go applications inside containers, and debugging containerized workloads.
Core Features & Use Cases
- Container Runtime Detection: detect runtime from /proc/<pid>/cgroup; supports runtimes including Docker, Podman, containerd, and cri-o.
- Docker API via CLI: use docker inspect, docker ps, and docker exec to manage containers.
- Docker Compose Detection: inspect labels to identify compose projects and services.
- Container Instrumentation Patterns: mount agents into containers and set JAVA_TOOL_OPTIONS or equivalent for instrumentation.
- Container Networking: fetch container IPs and exposed ports for integration and testing.
- Debugging Containers: access shells, view logs, and inspect runtime state; optionally use the Go Docker client for programmatic control.
- Go Client Library: use official Docker client library when CLI is insufficient.
Quick Start
Run the Docker Expert Guide steps to detect runtimes, instrument containers, and debug Go applications.