code.hofmanns.ai/.claude/skills/docker/skill.md

52 lines
1.4 KiB
Markdown
Raw Normal View History

---
description: Docker container management (local or remote)
argument-hint: [ps|logs|restart] [container] [@host]
---
# Docker Management
Manage Docker containers locally or on remote hosts.
## Commands
| Command | Description |
|---------|-------------|
| `ps` | List running containers |
| `logs <name>` | Show container logs |
| `restart <name>` | Restart container |
| `stop <name>` | Stop container |
| `start <name>` | Start container |
## Remote Hosts
Append `@host` to run on remote:
- `@hai` → hofmanns.ai (100.64.0.1)
- `@git` → git.hofmanns.tech (100.64.0.6)
- `@rtx` → local RTX machine
## Instructions
1. Parse: $ARGUMENTS
2. If `@host` suffix, run via SSH:
```bash
ssh user@host 'docker <command>'
```
3. Otherwise run locally:
```bash
docker <command>
```
4. Format output:
```
🐳 DOCKER STATUS [@hai]
┌────────────────┬─────────────┬────────┐
│ Container │ Status │ Ports │
├────────────────┼─────────────┼────────┤
│ caddy │ 🟢 Up 5d │ 80,443 │
│ synapse │ 🟢 Up 5d │ 8008 │
│ authentik │ 🟢 Up 5d │ 9000 │
└────────────────┴─────────────┴────────┘
```