Skip to content
Back to skills

Docker Ops

ASecurity

Hands-on Docker Engine and Docker Compose v2: Dockerfile, multi-stage, healthcheck, networks, volumes, bind mounts, logs, registry, docker compose up/down/config, BuildKit, non-root USER, restart policy. Use for any container task on a host: build an image, write compose.yaml, fix Restarting, read docker logs, docker inspect, overlay2, docker.sock, prune, CI image build. Triggers: docker, dockerfile, docker compose, compose.yaml, container, image build, docker logs, healthcheck, bind mount, d...

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 14, 2026
ai-agentsdockerkubernetesgit

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned October 14, 2026

npx -y skills add nordz0r/skills --skill docker-ops --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker Ops?

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

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

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-ops
description: "Hands-on Docker Engine and Docker Compose v2: Dockerfile, multi-stage, healthcheck, networks, volumes, bind mounts, logs, registry, docker compose up/down/config, BuildKit, non-root USER, restart policy. Use for any container task on a host: build an image, write compose.yaml, fix Restarting, read docker logs, docker inspect, overlay2, docker.sock, prune, CI image build. Triggers: docker, dockerfile, docker compose, compose.yaml, container, image build, docker logs, healthcheck, bind mount, docker network, registry, dind, контейнер, образ, логи, докер."
---

# Docker Ops

Skill for Docker Engine and Compose v2 on a Linux host. Hand over ready
`Dockerfile`/`compose.yaml` files and verification commands, not generic advice.

Do not use it as the primary skill for Kubernetes, GitLab YAML or the Ansible
`community.docker` module — those are `gitlab-ci` and `ansible-playbook`.
Handle GitLab `docker:dind` together with `gitlab-ci`.

## When to use

- Write or fix a Dockerfile / compose.yaml.
- Container is `Restarting`, unhealthy, cannot resolve DNS, cannot see a volume.
- Image build, tags, push to a registry.
- Networks, ports, bind mounts, named volumes, tmpfs.
- Logs, `inspect`, `events`, disk used by overlay2.

## Workflow

1. Confirm the runtime: `docker version`, `docker compose version`. Compose v2 is
   `docker compose`, not `docker-compose`.
2. If there is a compose file, run `docker compose config` and `ps -a` first.
3. Take symptoms from the container: `ps`, `logs --tail`, `inspect`, `health`.
4. Change code/config declaratively in the Dockerfile/compose; `docker exec` is not
   a permanent fix.
5. Verify: container healthy, port listening, volume in place, no `latest` tag
   in prod.

## Rules

- Pin tags. `latest` only for local experiments.
- In prod: non-root `USER`, `read_only` + `tmpfs` where possible, drop Linux caps.
- Config bind mounts: `:ro`. Data: a named volume or an explicit data path.
- A healthcheck is mandatory when `depends_on: condition` relies on it.
- No secrets in ENV baked into image history. Use `env_file`, tmpfs, Docker secrets.
- `network_mode: host` is the exception, not the default.

## Companion skills

- Host systemd/journald/disk → `administering-linux`.
- Builds in GitLab CI / dind / registry → `gitlab-ci`.
- Rolling out compose via Ansible → `ansible-playbook`.
- Amnezia containers `/opt/amnezia` → `amnezia-vpn`.

## References

- `references/compose-and-dockerfile.md` — Dockerfile and Compose templates.
- `references/debug.md` — diagnosing containers, networks, disk, the daemon.

<!-- A-EVOLVE-ROUTING-SIGNALS:START -->
## Routing signals: docker dockerfile compose.yaml docker compose healthcheck bind mount overlay2 registry image build container logs inspect restarting dind buildkit
<!-- A-EVOLVE-ROUTING-SIGNALS:END -->

Russian version: [`references/README.ru.md`](references/README.ru.md).

Files in this skill

  • SKILL.md2.9 KB
  • agents/openai.yaml233 B
  • evals/evals.json805 B
  • references/README.ru.md2.8 KB
  • references/compose-and-dockerfile.md3.4 KB
  • references/debug.md3.1 KB

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.

Comments

Loading comments…

Newsletter

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