Docker Manager Plugin

April 9, 2026 · View on GitHub

A Claude Code plugin providing slash commands and subagents for managing Docker containers, Compose stacks, volumes, networks, and multi-environment deployments.

What it does

This plugin turns Claude Code into a capable Docker administration assistant. It ships slash commands for day-to-day operations and specialized subagents for deeper analysis tasks. A context directory pattern lets Claude maintain an up-to-date picture of your Docker environments across sessions.

Commands

CommandDescription
/setupProbe the local system, run a guided intake interview, and generate initial context files
/statusComprehensive health check — containers, resource usage, disk, recent events
/cleanupAnalyze unused resources and guide through safe removal options
/logs [container]View and analyze logs for a specific container
/deployDeploy a new Compose stack or manage an existing one
/backupBackup Docker volumes to a local directory or remote destination
/update-contextRefresh context files to reflect the current environment state

Agents

AgentUse case
container-diagnosticsDebug crashes, restart loops, and connectivity failures
compose-generatorGenerate production-ready Compose files with supporting docs
security-auditAudit for security misconfigurations with a prioritised report
migration-plannerPlan and execute container migrations between environments
resource-optimizerAnalyse CPU, memory, and storage usage and recommend optimisations

Installation

claude plugin install danielrosehill/docker-manager-plugin

Or add to your project's .claude/plugin.json manifest.

Getting started

  1. Open Claude Code in the directory where you want to manage Docker.
  2. Run /setup — Claude will probe your system, ask a few configuration questions, and write initial context files.
  3. Use /status to verify everything looks healthy.
  4. Run any slash command or invoke an agent as needed.

Context management

After running /setup, a context/ directory holds environment profiles, network topology notes, volume inventory, and backup logs. Keep this up to date with /update-context after significant changes. The .gitignore excludes context/ by default since it may contain host-specific data; override this if you want to version-control it.

Multi-environment support

The workspace can manage multiple Docker environments:

  • Local — the Docker installation on your current machine.
  • Remote — Docker hosts reachable via SSH. Document each in context/environments/{hostname}.md.

Security notes

  • Never commit .env files containing real secrets.
  • Review the security-audit agent output periodically.
  • Use environment variables or a secrets manager for credentials.

License

MIT License. See LICENSE.