# docker-essentials

docker-essentials is a Claude Code skill with Docker commands for container lifecycle, logs, exec, image builds, Compose, networks, and volumes, for quick command lookup.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 166 installs · ★ 675 repo stars
- Author: sundial-org
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/sundial-org/awesome-openclaw-skills/tree/HEAD/skills/docker-essentials/SKILL.md
- Updated: 2026-03-07
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/docker-essentials

## What it does

The skill hands the agent a working set of Docker commands: start and stop containers, read logs with a line limit or timestamps, open a shell in a running container with `docker exec`, pull one field out of `docker inspect` by JSON path, build images, drive `docker-compose`. It all sits in one `SKILL.md`, with the flags `-d`, `-p`, `-v`, `-e` and `--rm` explained.

Ready-made recipes cover a dev container on `node:18` with the current folder mounted, a `postgres:15` instance with a named volume, file copies through `docker cp`, and a two-stage build that moves `dist` into `nginx:alpine`. Cleanup gets its own section (`docker system prune`, `docker image prune -a`), along with tips on versioned tags and `.dockerignore`.

The prerequisite is plain: `docker` has to be on `PATH`. Otherwise the agent reads the syntax and has nothing to run it against.

## Requirements
- Works with: Docker

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add sundial-org/awesome-openclaw-skills --skill docker-essentials -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/docker-essentials/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/docker-essentials/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add sundial-org/awesome-openclaw-skills --skill docker-essentials -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/docker-essentials/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add sundial-org/awesome-openclaw-skills --skill docker-essentials -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/docker-essentials/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install sundial-org/awesome-openclaw-skills skills/docker-essentials
```

2. **Manually: put the files in place**
- File: `.github/skills/docker-essentials/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add sundial-org/awesome-openclaw-skills --skill docker-essentials -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/sundial-org/awesome-openclaw-skills --path skills/docker-essentials
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/docker-essentials/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add sundial-org/awesome-openclaw-skills --skill docker-essentials -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/sundial-org/awesome-openclaw-skills/tree/HEAD/skills/docker-essentials/SKILL.md

## When to use it
- Run a container with a mapped port and a mounted volume
- Trace a crash through timestamped logs
- Open a shell inside a running container
- Build an image with build args and no cache
- Bring up a database and a service with `docker-compose`

## Example prompts
- Show me how to tail the last 100 log lines of the `api` container and get a shell inside it
- Build `myapp:1.0` from the Dockerfile without cache and explain each flag
- Start `postgres:15` with the `postgres-data` volume on port 5432

## Similar
- [docker-patterns](https://affpapa.org/en/nevibecode/skills/docker-patterns.md) — skill · 8600 installs
- [docker-compose-orchestration](https://affpapa.org/en/nevibecode/skills/docker-compose-orchestration.md) — skill · 3000 installs
- [docker-compose-patterns](https://affpapa.org/en/nevibecode/skills/docker-compose-patterns.md) — skill · 2900 installs
- [docker-project-foundations](https://affpapa.org/en/nevibecode/skills/docker-project-foundations.md) — skill · 1700 installs
- [docker](https://affpapa.org/en/nevibecode/skills/mindrally-docker.md) — skill · 1200 installs
- [docker-containerization](https://affpapa.org/en/nevibecode/skills/aj-geddes-docker-containerization.md) — skill · 683 installs

From the same set: [sundial-org/awesome-openclaw-skills](https://affpapa.org/en/nevibecode/by/sundial-org/awesome-openclaw-skills.md) — 37 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
