agentleFS
fmindfmind/dot/skills/docker/SKILL.md

docker

Skill10 starsChanged 56 days agoMITView on GitHub

Run and inspect Docker containers, Compose stacks, and Colima.

47 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ansible, helm 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

    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

  • LangChainSkill

    langchain

    Build agents with a prebuilt architecture and integrations for any model or tool. Use when creating tool-calling agents, switching model providers, or adding structured output.

    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

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 2

    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. Very specific:

    Use docker, docker compose, and lazydocker to manage container execution, services, and local debugging.

    line 15
  2. Distinctive:

    Linux: use the existing Docker-compatible engine.

    line 21
  3. Distinctive:

    macOS: use Colima instead of Docker Desktop.

    line 22
  4. Very specific:

    Clean up task resources: use docker run --rm <existing-image-or-approved-digest> <command> for ephemeral runs, and follow resource cleanup …

    line 50

“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 and Container Runtime Management

Use docker, docker compose, and lazydocker to manage container execution, services, and local debugging. containerize builds and signs images; trivy scans them for vulnerabilities.

Docker, Compose, and Colima are host prerequisites; workstation tools do not install or start them. Inspect docker context ls before choosing a runtime and pass docker --context <context> on consequential commands; do not change the persistent default just to run a task. Container runs execute project code; reuse authority for the requested workload and resolve missing scope before running untrusted images or consequential workloads. Preserve existing volumes and containers.

Runtime Selection

  • Linux: use the existing Docker-compatible engine; host daemon installation is outside user-space mise setup.
  • macOS: use Colima instead of Docker Desktop; read colima for its context, socket, memory, and mount behavior.

Workflow

  1. Verify daemon health and storage budget: confirm the daemon is responsive and check storage footprint before launching workloads. Run dot doctor --headroom before large pulls or builds.

    docker info --format 'Server={{.ServerVersion}} Driver={{.Driver}} Containers={{.Containers}} Images={{.Images}}'
    docker system df
  2. Manage Compose stacks: resolve the Compose file and project name first. Use a unique name for a new disposable stack; reuse an existing project's name only when operating that stack is in scope.

    docker --context <context> compose -p <project> -f <compose-file> up -d
    docker --context <context> compose -p <project> -f <compose-file> ps
    docker --context <context> compose -p <project> -f <compose-file> logs --since 15m --tail 100 <service>
    docker --context <context> compose -p <project> -f <compose-file> down
  3. Leave interactive debugging to the user: lazydocker and docker exec -it <container-id> sh need a TTY; suggest them for user-driven sessions and use bounded non-interactive docker exec <container-id> <command> otherwise.
  4. Read container logs boundedly: select the container and incident window; widen the window when needed, and keep streaming opt-in. Use inspect --format for specific state fields instead of dumping environment and mount details.

    docker logs --since 15m --tail 100 <container-id>
  5. Clean up task resources: use docker run --rm <existing-image-or-approved-digest> <command> for ephemeral runs, and follow resource cleanup for task-created volumes, networks, images, and builders.

Gotchas

  • Exit 137 is not proof of OOM: it means SIGKILL; check docker inspect --format '{{.State.OOMKilled}}' <container-id>, the configured memory limit, and kernel/runtime evidence before changing limits. On macOS, Colima's VM budget also applies; see colima.

Task guides

<!-- guides:start -->
  • colima: Run Docker on macOS through Colima: VM start, socket, memory limits, and mounts.
<!-- guides:end -->

Documentation

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.