docker-ops
БесплатноЗапускает вложенные скриптыНе проверенDocker on your machine and in your repo: Dockerfile, .dockerignore, compose.yaml, BuildKit, image hardening and supply chain, plus the engine underneath…
от 0xDarkMatter★ 86 звёзд на GitHubОб этом скилле
Docker Operations
Docker on your machine and in your repo: the files you write (Dockerfile, .dockerignore,
compose.yaml) and the engine that runs them. Versions verified 2026-10-07 (Compose v5,
Docker Desktop 4.94, WSL 3.0, Podman 6); scripts/check-docker-facts.py --live re-checks
them weekly.
Why: the costly Docker mistakes are silent. A secret is copied into a layer, a datastore
listens on every interface, compose config pastes credentials into a log, a prune deletes
a volume someone needed. The rules below stop those first.
Hard rules
- Say what is lost before anything destructive, and confirm a sweep. Removing one
stopped container the user named is fine on an explicit ask.
docker kill, anyprune,compose down -v,volume rm, and anything unscoped (docker rm -f $(docker ps -aq)) needs a confirmation that names what goes. A sweep counts as a sweep even when everything in it is stopped: scope beats state. Tiers: destructive-commands.md. - Never run
docker compose configbare. It prints interpolated values and inlinesenv_filecontents. Usedocker compose config --quietto validate, and add--no-interpolatewhen you need to read the file. - No secrets in layers. No
ARG/ENVcredentials, noCOPY .env/.npmrc/ keys. UseRUN --mount=type=secret,id=x,required=true(fails loudly when the secret is missing) and--mount=type=ssh. A laterRUN rmdoes not remove a file from the earlier layer. - Datastores and debug ports bind to loopback. Write
127.0.0.1:5432:5432, never5432:5432. On Docker Desktop, an unbound port is reachable from your LAN. - Pin scanners and actions by commit SHA. In March 2026, 76 of trivy-action's 77 tags
were force-pushed to an infostealer (advisory GHSA-69fq-xp46-6x23). Use
aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0. Vetting dependencies is supply-chain-defense's job. - Current bases only. Node.js 22 is the oldest supported line (20 ended 2026-04-30),
Python 3.11 (3.10 ended 2026-10-01). Distroless images are
-debian13. Pin a tag, and in production a digest.assets/docker-facts.jsonholds the floors the auditor checks. - Verify a non-root image with
docker inspect --format '{{.Config.User}}'(it must be set and not0orroot).docker run img whoamilies when the image has an ENTRYPOINT. - Never start, stop or reconfigure the engine on the user's behalf. Report that it is
down and give the start command. Propose a settings change; don't apply it. A setting
their admin locked is the admin's call (
docker-doctor.pyreports locks). compose.yaml, noversion:line. Compose ignoresversion:and prints a warning. Since Compose v5 (2025-12; v3 and v4 were skipped), builds go through Bake.- Run this skill's scripts by path from the project root. Use
python "<skill-dir>/scripts/x.py"; nevercdinto the skill or callscripts/x.pyrelative to the project.
Routing
| The task | Where |
|---|---|
| Dockerfile, multi-stage, BuildKit, base images, multi-platform | here + dockerfile.md |
| compose.yaml, healthchecks, profiles, watch, secrets | here + compose.md |
| Scanning, SBOM, provenance, signing, digest pins | supply-chain-and-scanning.md; vetting packages: supply-chain-defense |
| Which engine am I talking to, contexts, sockets, credential helpers | providers-and-contexts.md |
| Port clashes, host.docker.internal, VPN subnets, reserved ports | ports-and-networking.md |
| The VM disk keeps growing | disk-reclaim.md |
| Slow bind mounts, VirtioFS, Rosetta, arm64 vs amd64 | vmm-sharing-emulation.md |
| A container that won't start, exits, or can't be debugged | debugging.md |
| Kubernetes, Helm, Gateway API, ECS | kubernetes-ops |
A project with a .ddev/ folder |
ddev-ops (its extra services use Compose syntax from here) |
.wslconfig, WSL networking modes, WSL disks in general |
windows-ops (wsl.md) |
npm ci vs npm install, lockfiles inside a RUN |
package-manager-ops |
| CI pipelines that build and push | ci-cd-ops |
| Go or Rust build specifics (CGO, static and musl binaries, toolchain caches) | go-ops, rust-ops |
Tools
docker build --check . # BuildKit's own checks first (needs the daemon)
python "<skill-dir>/scripts/docker-audit.py" . # repo: Dockerfiles + Compose (exit 10 = findings)
python "<skill-dir>/scripts/docker-doctor.py" --ports 80,5432 # machine: engine, provider, disk, ports (read-only)
python "<skill-dir>/scripts/check-image-tags.py" --live
Установить docker-ops в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashВложенные файлы
FAQ
Что делает скилл docker-ops?
Docker on your machine and in your repo: Dockerfile, .dockerignore, compose.yaml, BuildKit, image hardening and supply chain, plus the engine underneath (Docker Desktop, OrbStack, Colima, Podman, Rancher Desktop): contexts and sockets, ports, disk space, file sharing, emulation. Ships a repo auditor, a read-only machine doctor, an image-tag checker. Not for Kubernetes or Helm (kubernetes-ops), DDEV projects (ddev-ops), or WSL itself (windows-ops).
Как установить скилл docker-ops?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл docker-ops запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub