docker-cli

docker-cli is a skill for Claude Code from itsnex1s/awesome-claude-skills. It costs 28 tokens per session (1,905 once invoked), scanned B, original, MIT.

A command-line guide for Docker, which packages software and its dependencies into portable containers, plus Docker Compose for running multiple services together.

In plain words
What is it for?
Use it to build and tag images, start containers, manage volumes, push images to registries, and coordinate services.
Why use it?
It gives you repeatable commands for building, running, sharing, and cleaning up containerized applications.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is COPY --from=builder /app/.next/static ./.next/static.

Good fit Use it to build and tag images, start containers, manage volumes, push images to registries, and coordinate services.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/itsnex1s/awesome-claude-skills
agentmods
npx agentmods add skills/itsnex1s/awesome-claude-skills/docker-cli

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docker-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/itsnex1s/awesome-claude-skills/docker-cli/github.svg)](https://agentmods.dev/skills/itsnex1s/awesome-claude-skills/docker-cli)
Your own site
<a href="https://agentmods.dev/skills/itsnex1s/awesome-claude-skills/docker-cli"><img src="https://agentmods.dev/badge/skills/itsnex1s/awesome-claude-skills/docker-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docker-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/itsnex1s/awesome-claude-skills/docker-cli"><img src="https://agentmods.dev/badge/skills/itsnex1s/awesome-claude-skills/docker-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,905 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01905
Opus 5 $0.00014 $0.00953
Sonnet 5 $0.00006 $0.00381
Haiku 4.5 $0.00003 $0.00191

Measured 8d ago against content hash b2ce106e9fc3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

docker-cli scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo usermod -aG docker $USER
skills/docker-cli/SKILL.md · 331 lines

How it starts

The opening of the file, as written. The whole thing — 331 lines — stays where its author put it; the contents beside it link to each section on GitHub.

docker-cli

Docker and Docker Compose commands for containerization, image building, and container orchestration.

Installation

# macOS
brew install --cask docker

# Verify
docker --version
docker compose version

Images

Build

docker build -t myapp .                      # Build from Dockerfile
docker build -t myapp:v1.0 .                 # With tag
docker build -t myapp -f Dockerfile.prod .   # Custom Dockerfile
docker build --no-cache -t myapp .           # Without cache
docker build --platform linux/amd64 -t myapp .  # Specific platform

List & Remove

docker images                    # List images
docker images -a                 # Include intermediate
docker rmi myapp                 # Remove image
docker rmi $(docker images -q)   # Remove all images
docker image prune               # Remove dangling images
docker image prune -a            # Remove unused images

Push to Registry

docker login                                 # Login to Docker Hub
docker tag myapp username/myapp:v1.0        # Tag for registry
docker push username/myapp:v1.0             # Push
docker pull username/myapp:v1.0             # Pull

Containers

Run

docker run myapp                             # Run container
docker run -d myapp                          # Detached (background)
docker run -p 3000:3000 myapp               # Port mapping
docker run -p 3000:3000 -p 5432:5432 myapp  # Multiple ports
docker run --name mycontainer myapp          # Named container
docker run -e NODE_ENV=production myapp      # Environment variable
docker run --env-file .env myapp             # Env file
docker run -v $(pwd):/app myapp              # Mount volume
docker run -it myapp /bin/sh                 # Interactive shell
docker run --rm myapp                        # Remove after exit

Common Run Patterns

# Web app with hot reload
docker run -d -p 3000:3000 -v $(pwd):/app --name dev myapp

# Database
docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=secret --name db postgres:15

# One-off command
docker run --rm myapp npm test

Read the full file on GitHub · 331 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 331 lines · 28 tokens per session scan B b2ce106e9fc3

Subscribe to this mod's changes

docker-cli is a skill published in the GitHub repository itsnex1s/awesome-claude-skills (5 stars, last pushed 6mo ago), licensed MIT. It adds 28 tokens to every session and 1,905 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.