Docker Stack Ops logo

Docker Stack Ops

Organization
serversathome
docker-stack-ops

Troubleshoot and manage the Docker / Dockge stacks over SSH, especially the arr media stack. Use this whenever the user mentions a container, Docker, Dockge, a compose stack, or any specific app such as Jellyfin, qBittorrent, gluetun, Radarr, Sonarr, Prowlarr, Seerr, Immich, Seafile, SearXNG, or similar, and whenever the symptom is app-level: a container is down, restarting, unhealthy, downloads are stalled, requests are not processing, or a service is unreachable while its host is fine. Trigger this even if the operator just names an app and says it is broken.

Overview

Publisherserversathome
Repositoryhomelabhero
Skill namedocker-stack-ops
Stars
104
Forks
4
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by serversathome on GitHub. Read the source before you install it.

Installation

Install the Docker Stack Ops AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/docker-stack-ops
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/serversathome/homelabhero.git /tmp/homelabhero
mkdir -p .claude/skills
cp -r /tmp/homelabhero/ops/.claude/skills/docker-stack-ops .claude/skills/docker-stack-ops
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Docker Stack Ops in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Docker Stack Ops on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Docker Stack Ops is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Docker stack ops

Reached over SSH to the docker host(s). Read infra/docker-stacks.md for host aliases, the compose layout, and stack membership before acting. Docker needs root: if the host connects as a non-root user (e.g. TrueNAS truenas_admin), prefix docker / docker compose with sudo -n (works when that user has passwordless sudo; the host-ops and truenas-ops skills carry the one-time fix). Root hosts run it bare. capabilities/linux.md has the full Docker and host command surface; it is not loaded up front.

Where compose files live depends on the setup and is recorded in infra/docker-stacks.md: it may be a single /mnt/<pool>/docker/docker-compose.yml (the TrueNAS layout), per-stack /opt/stacks/<stack>/compose.yaml (Dockge), or stacks defined in Portainer. This skill is for troubleshooting/operating existing stacks; to stand up a NEW app or stack, use the deploy-app skill.

Diagnose first

hh run <dockerhost> "docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'"
hh run <dockerhost> "docker ps -a --filter status=exited --format '{{.Names}}\t{{.Status}}'"
hh run <dockerhost> "docker logs --tail 120 <container>"
hh run <dockerhost> "docker inspect -f '{{.State.Health.Status}}' <container>"

The gluetun rule (most common arr failure)

If downloads are dead but the rest of the stack is fine, suspect the VPN sidecar before touching qBittorrent.

hh run <dockerhost> "docker logs --tail 60 gluetun"
hh run <dockerhost> "docker exec gluetun wget -qO- https://ipinfo.io/ip"

If that IP is the home IP or the call fails, the tunnel is down. Fix order: restart gluetun, wait for healthy, confirm the egress IP is the VPN's, then restart qBittorrent. Never let qBittorrent run with a leaked (home) IP.

Common cases

  • Container restart loop: read the tail of its logs for the fatal line; check a bad config volume, a missing dependency container, or a port clash.
  • App reachable internally but not externally: this is usually network-diag territory (Cloudflare Tunnel or reverse proxy), not the container.
  • Everything in a stack down after boot: order sensitivity. Bring up dependencies first (VPN, db), then the rest.

State-changing (confirm first)

# from the compose dir: Dockge => /opt/stacks/<stack>, single-file => /mnt/<pool>/docker
hh run <dockerhost> "cd <composedir> && docker compose restart <service>"
hh run <dockerhost> "cd <composedir> && docker compose up -d"
hh run <dockerhost> "cd <composedir> && docker compose pull && docker compose up -d"

Do not docker compose down -v or prune volumes without an explicit go-ahead; the -v and prune paths delete app data. Image pruning is fine, volume pruning is not.

Frequently asked questions

What does the Docker Stack Ops AI skill do?

Troubleshoot and manage the Docker / Dockge stacks over SSH, especially the arr media stack. Use this whenever the user mentions a container, Docker, Dockge, a compose stack, or any specific app such as Jellyfin, qBittorrent, gluetun, Radarr, Sonarr, Prowlarr, Seerr, Immich, Seafile, SearXNG, or similar, and whenever the symptom is app-level: a container is down, restarting, unhealthy, downloads are stalled, requests are not processing, or a service is unreachable while its host is fine. Trigger this even if the operator just names an app and says it is broken.

Why use Docker Stack Ops on TypingMind?

Because you install it once and use it with any model. Docker Stack Ops is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Docker Stack Ops in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/docker-stack-ops. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Docker Stack Ops?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Docker Stack Ops?

As many as you like. As long as a model supports skills, you can use Docker Stack Ops with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Docker Stack Ops AI skill free?

It is published on GitHub by serversathome. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇