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

docker

Skill13 starsChanged 3 days agoMITView on GitHub

Run Docker, Compose, and Colima; build, scan, sign, and verify Python images.

55 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ml-training-recipe, replication 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.
  • getcompanion-aiSkill

    ml-training-recipe

    Find implementable ML training recipes from papers, datasets, docs, and code. Use when the user wants to fine-tune, train, reproduce, or choose a practical ML method, dataset, hyperparameter setup, or benchmark recipe.

    Also in 3 projects that use this

  • getcompanion-aiSkill

    replication

    Plan a replication of a paper, claim, or benchmark, and execute only after an explicit environment choice. Use when the user asks to replicate results, reproduce an experiment, verify a claim empirically, or build a replication package.

    Also in 3 projects that use this

  • Sorcha-PlatformSkill

    scalar

    Generates and configures Scalar OpenAPI UI for API documentation. Use when: Adding API documentation to services, configuring OpenAPI endpoints, customizing documentation themes

    Also in 3 projects that use this

  • brainbytes-devSkill

    alpha-research

    Also in 3 projects that use this

  • JaimeParkerSkill

    paper-code-audit

    Perform three-way cross-validation of a research paper by comparing the original paper text (via Zotero), official code implementation (via Git), and personal Obsidian notes. Use this skill whenever the user wants to "audit a paper", "verify paper claims against code", "cross-check notes with implementation", "triangulate paper + code + notes", "find discrepancies between paper and code", or mentions wanting a deep, structured comparison of a paper's claims against its implementation and their own notes. Also trigger when the user asks to "analyze this paper thoroughly" with code available, or when they want to systematically reconcile what the paper says, what the code does, and what their notes claim.

    Also in 3 projects that use this

  • Sorcha-PlatformSkill

    redis

    Implements Redis caching, session management, and distributed coordination for the Sorcha platform. Use when: Adding caching layers, token revocation, rate limiting, SignalR backplane, or distributed state.

    Also in 5 projects that use this

  • +1 more from getcompanion-ai

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 46 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

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

    Exit 137 is SIGKILL, not proof of OOM: check .State.OOMKilled and the memory limit first.

    line 47

“Common” is measured: kept by at least 6 in 10 of the 46 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. The containerize guide builds, publishes, and signs Python images; trivy scans them for vulnerabilities.

On Linux, Docker and Compose are host prerequisites. On macOS, the global mise config installs Colima, Lima, and the Docker CLI with Compose and Buildx (Colima). Nothing here starts a daemon or VM. 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. up --wait exits non-zero when a service fails to start or stays unhealthy, while up -d succeeds once containers start; a one-shot service that exits 0 also fails --wait unless another service depends on it with condition: service_completed_successfully.

    docker --context <context> compose -p <project> -f <compose-file> up --wait --wait-timeout 120
    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. 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

  • The Linux engine comes from the distro: Docker and Buildx can lag upstream (Debian ships Buildx 0.13), so check docker buildx version before using a newer build flag such as --check.
  • Exit 137 is SIGKILL, not proof of OOM: check .State.OOMKilled and the memory limit first; on macOS, Colima's VM budget also applies.

Task guides

<!-- guides:start -->
  • colima: Run Docker on macOS through Colima: VM start, socket, memory limits, and mounts.
  • containerize: Build, scan, sign, and verify Python container images with Trivy and Cosign.
  • cosign: Sign, verify, and attest image digests with keyless Sigstore.
<!-- 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.