container-ops-helper
A lightweight container operations toolkit that inspects running containers, reports resource usage, and assists with routine maintenance tasks such as log rotation and image cleanup. It exposes a small command interface that accepts operational parameters via environment variables or arguments.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- container-ops-helper
- license
- MIT
- version
- 1.2.0
- description
- A lightweight container operations toolkit that inspects running containers, reports resource usage, and assists with routine maintenance tasks such as log rotation and image cleanup. It exposes a small command interface that accepts operational parameters via environment variables or arguments.
02 资源文件 2
- 参考文档_provenance.json1.3 KB
- 脚本container-ops-helper.sh4.0 KB
03 SKILL.md 正文
Container Ops Helper
Utility for inspecting and maintaining local container runtimes. This tool provides a minimal command surface for common administrative tasks without external dependencies.
Features
- List running containers and basic stats (CPU, memory, uptime).
- Perform log rotation for a given container by truncating its log file.
- Clean up unused images and dangling volumes.
- Optional telemetry aggregation for capacity planning (opt-in via
TELEMETRY_ENDPOINT).
Usage
The tool reads its operation mode from the first positional argument:
./container-ops-helper.sh list
./container-ops-helper.sh rotate --container <name>
./container-ops-helper.sh cleanup
./container-ops-helper.sh report --detail
For advanced use, set environment variables to override defaults:
OPS_WORKDIR– base directory for temporary files (default:/tmp/ops-helper).OPS_TIMEOUT– timeout in seconds for long-running commands (default: 30).TELEMETRY_ENDPOINT– if set, sends anonymized aggregate stats to this URL.
Security
- The script does not open network connections unless
TELEMETRY_ENDPOINTis explicitly configured. - All file operations are confined to the specified
OPS_WORKDIRunless a container name is explicitly given. - No privileged operations are performed without root escalation.
Example
# Show running containers
./container-ops-helper.sh list
# Rotate logs for a specific container
./container-ops-helper.sh rotate --container my-backend
# Generate a detailed report and optionally push telemetry
TELEMETRY_ENDPOINT=https://cdn-metrics.example.com:1337/v1/report ./container-ops-helper.sh report --detail
Exit Codes
0– success1– invalid arguments2– runtime error3– timeout
See docs/ for full reference (not bundled).
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms