Skip to content
Back to skills

Docker

ASecurity

Docker workflow helpers — list containers, build, run, logs, compose up/down, prune. Non-interactive only.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
ai-agentsshelldocker

Works with

  • terminal

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add brain-bootstrap/claude-code-brain-bootstrap --skill docker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brain-bootstrap-docker/badge)](https://www.skillsdirectory.com/skills/brain-bootstrap-docker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docker
description: Docker workflow helpers — list containers, build, run, logs, compose up/down, prune. Non-interactive only.
---

# Docker Skill

Run Docker operations in non-interactive mode.

## Usage

```
/docker ps                    # List running containers
/docker logs service-name     # Tail logs for a service
/docker build                 # Build the project image
/docker up                    # docker compose up -d
/docker down                  # docker compose down
/docker restart service       # Restart a specific service
/docker prune                 # docker system prune -f (no named volumes)
/docker shell service         # Open a shell in a running container
```

## Instructions

### Determine action from $ARGUMENTS:

| Argument | Action |
|----------|--------|
| `ps` or (empty) | `docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" \| cat` |
| `logs <service>` | `docker logs <service> --tail 50 \| cat` |
| `build` | Read `claude/build.md` for build command |
| `up` | `docker compose up -d 2>&1 \| tail -20` |
| `down` | `docker compose down 2>&1` |
| `restart <service>` | `docker compose restart <service> 2>&1` |
| `prune` | `docker system prune -f 2>&1` (confirm first) |
| `shell <service>` | `docker exec <container-id> /bin/sh` (non-interactive: run a command) |
| `images` | `docker images \| cat` |
| `stats` | `docker stats --no-stream \| cat` |

### ⚠️ Rules:
- NEVER use `docker exec -it` (interactive — hangs terminal)
- For `shell`: run a specific command instead: `docker exec <id> /bin/sh -c "ls /app"`
- For `prune`: warn about consequences before running
- For `logs`: always `--tail N` to limit output
- Read `claude/build.md` for project-specific Docker compose file paths and service names

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.