docker-logs-snapshot

Capture Docker/Compose logs and container state into output artifacts.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jfriisj/real-time-speech-translation-mvp --skill docker-logs-snapshot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-logs-snapshot
Source: https://github.com/jfriisj/real-time-speech-translation-mvp/tree/main/.github/skills/docker-logs-snapshot
Command: npx skills add https://github.com/jfriisj/real-time-speech-translation-mvp --skill docker-logs-snapshot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill captures a quick, reproducible snapshot of Docker/Compose logs and container state for debugging. Use when smoke tests fail or you need attachable evidence.

Core Features & Use Cases

  • Basic inventory: captures timestamp, Docker version, Docker Compose version, and a snapshot of running containers.
  • Compose status: if COMPOSE_FILES is provided, captures docker compose ps.
  • Container logs & inspect: if SERVICE_CONTAINER is set, captures logs and container inspection data.
  • Full logs: optionally captures all compose logs using the provided COMPOSE_FILES.

Quick Start

Use the docker-logs-snapshot skill to snapshot logs for a running container. Example: SERVICE_CONTAINER=speech-recognition-service COMPOSE_FILES="-f docker-compose.yml" LOGS_TAIL=200 OUT_DIR=agent-output/live-testing/artifacts

Frequently Asked Questions about docker-logs-snapshot

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

FAQPage Schema
How do I capture Docker logs and container state for debugging when tests fail?

Docker logs and container state are captured into reproducible snapshot artifacts containing timestamps, Docker versions, running container inventories, Compose status, and container inspection data for debugging failed smoke tests or incidents.

What's the best way to save Docker Compose logs as evidence for an incident investigation?

Generate a reproducible snapshot artifact containing Docker Compose logs, container inspection data, and Compose ps status by specifying COMPOSE_FILES, SERVICE_CONTAINER, LOGS_TAIL, and OUT_DIR, yielding persistent evidence for incident investigation.

Can I snapshot logs for a specific running container instead of the whole Compose stack?

Yes, setting the SERVICE_CONTAINER variable captures targeted container logs and inspection data for a specific running container, while COMPOSE_FILES optionally adds full Compose logs alongside the focused container snapshot.

Do I need Docker and Docker Compose installed to capture a reproducible log snapshot?

Yes, Docker and Docker Compose are required dependencies to capture a reproducible log snapshot, as the process reads container state and logs directly from the Docker daemon and Compose orchestration layer.

How do I control the amount of log lines captured in a Docker debugging snapshot?

Control the amount of log lines captured in a Docker debugging snapshot using the LOGS_TAIL variable, which specifies the number of tail lines pulled from container logs, limiting artifact size to relevant recent output.