agentleFS
dekozadekoza/oh-my-slop/skills/reference/docker/SKILL.md

docker

Skill4 starsChanged 9 months agoUnlicenseView on GitHub

Use when working out how Docker behaves or why it is failing — `docker build` / `docker compose` errors, daemon connectivity, networking, storage, or registry auth — or when reviewing or fixing a Dockerfile or compose.yaml, including one only described in prose. Triggers on: "docker build", "docker compose", "Cannot connect to the Docker daemon", "bind mount", "container DNS", "registry auth", "BuildKit", "review this Dockerfile". Excludes Kubernetes and Helm; authoring rules live in docker-discipline.

47 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ansible, kubernetes and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • KubementatSkill

    ansible

    Ansible automation reference for playbooks, roles, inventory, variables, and modules. Includes Proxmox VE and Docker integration via community.general and community.docker collections. Use when writing playbooks, troubleshooting Ansible runs, or designing automation workflows. Triggers: ansible, playbook, inventory, role, task, handler, vars, jinja2, galaxy, proxmox_kvm, proxmox_lxc, docker_container, docker_compose.

    Also in 3 projects that use this

  • mjunaidcaSkill

    kubernetes

    Production-grade Kubernetes manifests and debugging for containerized applications. This skill should be used when users ask to deploy to Kubernetes, create K8s manifests, containerize for K8s, set up Deployments/Services/Jobs/StatefulSets/CronJobs, create namespaces with resource quotas, set up multi-team isolation, configure ResourceQuota/ LimitRange, secure with RBAC (ServiceAccount, Role, RoleBinding), configure init containers (model download, db wait, migrations), set up sidecars (logging, metrics), or debug pods (CrashLoopBackOff, logs, exec, describe, events). Auto-detects from Dockerfile/code, generates hardened manifests with educational comments. CKAD-aligned.

    Also in 6 projects that use this

  • mjunaidcaSkill

    helm

    Production-grade Helm 4 chart development, release management, and debugging. This skill should be used when users ask to create Helm charts, deploy with Helm, manage releases (install/upgrade/rollback), push charts to OCI registries, debug failed deployments, configure chart dependencies, create umbrella charts, set up GitOps with ArgoCD/Flux, or troubleshoot Helm issues. Auto-detects from Dockerfile/code, generates production-hardened charts with library patterns. Complements kubernetes skill.

    Also in 3 projects that use this

  • diego-tobalinaSkill

    logging

    Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.

    Also in 4 projects that use this

  • ihiteshguptaSkill

    terraform

    Expert in Infrastructure as Code with Terraform. Use for creating, managing, and versioning infrastructure across cloud providers.

    Also in 4 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 12 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for core Docker implementation, configuration, and troubleshooting.

    line 15
  2. Very specific:

    When the task *writes or changes* a Dockerfile, compose file, or deployment config, also apply the docker-discipline skill — it owns the …

    line 17
  3. Distinctive:

    Add a second reference only when the task clearly crosses domains.

    line 27
  4. Distinctive:

    Verify whether the problem is configuration, build graph, runtime networking or storage, registry auth, or security.

    line 28
  5. Distinctive:

    Kubernetes, Helm, or cluster schedulers: - Do not use this skill as the source of truth for Kubernetes manifests, Helm charts, or …

    line 33
  6. Distinctive:

    Cloud-vendor registry specifics: - Use vendor docs for ECR, GCR, GAR, ACR, or IAM-specific auth flows after grounding the Docker side here.

    line 34
  7. Distinctive:

    Socket or TCP daemon access is privileged: - Treat Docker daemon access as root-equivalent.

    line 43
  8. Distinctive:

    Tags are mutable; digests are immutable: - Use tags for convenience, digests for reproducibility and controlled rollouts.

    line 44
  9. Distinctive:

    Troubleshooting is symptom-driven: - Start with the smallest failing boundary: daemon reachability, config conflicts, build context, …

    line 45
  10. Very specific:

    Use references/REFERENCE.md as the canonical cross-file index.

    line 51
  11. Distinctive:

    Add one secondary reference only when the task clearly crosses domains.

    line 56
  12. Distinctive:

    Keep the answer grounded in the references actually used.

    line 57
  13. Distinctive:

    Call out the verification command, expected behavior, or highest-risk misconfiguration.

    line 58
  14. Distinctive:

    Use this answer shape unless the user explicitly asks for a different format:

    line 79

“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Docker Reference

Use this skill for core Docker implementation, configuration, and troubleshooting. It covers product boundaries, daemon and context configuration, Dockerfile authoring, BuildKit and Buildx, Compose CLI and file semantics, networking, storage, registries, security, and troubleshooting. Read only the reference files needed for the task.

When the task writes or changes a Dockerfile, compose file, or deployment config, also apply the docker-discipline skill — it owns the authoring rules (non-root user, multi-stage, secrets, .dockerignore, compose readiness and test-stack lifecycle).

Quick Start

  1. Identify the boundary first: client vs daemon, build vs runtime, local vs remote daemon, Dockerfile vs Compose.
  2. Decide whether the task has a real local file to inspect or only a described scenario.
  3. Open the single best-matching file from references/.
  4. Add a second reference only when the task clearly crosses domains.
  5. Verify whether the problem is configuration, build graph, runtime networking or storage, registry auth, or security.
  6. State which references you used and what commands or checks should verify the answer.

When Not To Use This Skill

  • Kubernetes, Helm, or cluster schedulers - Do not use this skill as the source of truth for Kubernetes manifests, Helm charts, or higher-level orchestration.
  • Cloud-vendor registry specifics - Use vendor docs for ECR, GCR, GAR, ACR, or IAM-specific auth flows after grounding the Docker side here.
  • Desktop-only GUI workflows - This skill mentions Docker Desktop only when it changes core behavior. It is not a full Desktop manual.
  • Generic OCI internals - For runtime internals that are not Docker-specific, route to lower-level OCI, containerd, or kernel docs.

Critical Rules

  1. Boundary first - Decide whether the issue is client, daemon, build, runtime, registry, or Compose before suggesting commands.
  2. Context and host checks first - For daemon connectivity, inspect docker context, DOCKER_CONTEXT, and DOCKER_HOST before deeper debugging.
  3. Mount types are not interchangeable - Bind mounts couple you to the daemon host, volumes are Docker-managed persistence, tmpfs is ephemeral Linux memory storage.
  4. Socket or TCP daemon access is privileged - Treat Docker daemon access as root-equivalent. Prefer SSH contexts or TLS, never casual unauthenticated TCP.
  5. Tags are mutable; digests are immutable - Use tags for convenience, digests for reproducibility and controlled rollouts.
  6. Troubleshooting is symptom-driven - Start with the smallest failing boundary: daemon reachability, config conflicts, build context, network and DNS, mounts, registry auth, or security.
  7. Hypothetical tasks run from the described facts - When the user describes a broken Dockerfile, Compose file, or command without attaching the file, treat the prose as the source of truth: say you are working from the described scenario, state the assumptions, and still produce the corrected file or command. Ask for the file only if its exact contents would materially change the answer.
  8. One narrow file check, then stop - For such hypothetical tasks, check the current task directory at most once for an obvious local file. If it is not there, stop searching — never widen to $HOME, parent directories, /tmp, or broad filesystem globs.

Reference Map

Use references/REFERENCE.md as the canonical cross-file index. Do not maintain a second routing table in parallel here.

Task Routing

  1. Choose the primary reference from the routes below.
  2. Add one secondary reference only when the task clearly crosses domains.
  3. Keep the answer grounded in the references actually used.
  4. Call out the verification command, expected behavior, or highest-risk misconfiguration.
  • Containerize an app, review a Dockerfile, or explain image structure -> references/dockerfile-images.md
  • Optimize builds, multi-platform output, cache, secrets, or builders -> references/buildkit-buildx.md
  • Write or debug compose.yaml, service wiring, or local stack lifecycle -> references/compose-cli.md and/or references/compose-spec.md
  • Fix daemon connectivity, remote access, contexts, or daemon.json -> references/engine-config-contexts.md
  • Fix DNS, published ports, host access, or network topology -> references/networking.md
  • Fix bind mounts, volumes, tmpfs, or data persistence -> references/storage.md
  • Authenticate to registries, tag, pull, or push images, or reason about digests -> references/registries-auth.md
  • Harden Docker usage or review security posture -> references/security.md
  • Diagnose a broken Docker setup or vague failure -> references/troubleshooting.md
  • Clarify whether the problem belongs to Docker at all -> references/overview-boundaries.md
  • Cannot connect to the Docker daemon -> references/troubleshooting.md + references/engine-config-contexts.md
  • Compose stack starts but the app still fails because the database is not ready -> references/compose-spec.md + references/troubleshooting.md
  • Bind mount behaves differently on CI or a remote Docker host -> references/storage.md + references/overview-boundaries.md
  • Private dependency access during docker buildx build -> references/buildkit-buildx.md + references/security.md
  • Need reproducible image rollout -> references/dockerfile-images.md + references/registries-auth.md

Output Expectations

Use this answer shape unless the user explicitly asks for a different format:

  • Primary boundary: one of client, daemon, build, runtime, registry, or Compose.
  • References used: exact references/*.md files you relied on.
  • What is happening: shortest accurate explanation of the failure, design issue, or tradeoff.
  • Recommended fix: commands, config, file content, or decision.
  • Verification: the minimum command or check that proves the fix.
  • Highest-risk footgun: the one mistake most likely to waste time or create an unsafe setup.

Additional expectations:

  • For Dockerfile or Compose authoring tasks, prefer showing a concrete file body rather than only describing what should exist.
  • For troubleshooting tasks, keep the checklist ordered from boundary checks to deeper daemon or runtime checks.
  • Say explicitly when behavior changes between local and remote daemons.

Content Ownership

This skill owns core Docker usage and troubleshooting: boundaries, daemon configuration, contexts, Dockerfiles, BuildKit and Buildx, Compose, networking, storage, registries, security, and operational diagnosis.

Authoring discipline for this stack's Dockerfiles and compose files (non-root users, secrets handling, test-stack lifecycle) is owned by docker-discipline. Kubernetes, Helm, Desktop UI walkthroughs, and cloud-vendor-specific registry IAM flows are outside the core scope. Use dedicated docs or skills for those.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.