Claude Skill

docker

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

LLM Mart · 0 points · 2 views 0 listing impressions 0 install-command copies
Download fmind-dot-skills_docker-3bbe830.zip · 8 KB

Install

skills CLI npx skills add https://github.com/fmind/dot/tree/main/skills/docker
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install fmind-dot@llmmart
Git git clone https://github.com/fmind/dot.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole fmind/dot collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Docker and Container Runtime Management

Manage local containers and Compose stacks with docker, docker compose, and lazydocker. containerize builds and signs Python images; trivy scans them.

Never auto-start a daemon or VM, mutate the default context, or touch existing containers/volumes without scope: inspect docker context ls, pass docker --context <context> explicitly, and confirm authority before running untrusted images or consequential workloads.

Runtime Selection

  • Linux: host-installed Docker-compatible engine and Compose (outside user-space mise).
  • macOS: Colima instead of Docker Desktop (colima, lima, docker-cli, docker-compose, docker-buildx in global macOS mise); see colima.

Workflow

  1. Check daemon and disk headroom: run dot doctor --headroom before large pulls or builds, then inspect daemon state:

    docker info --format 'Server={{.ServerVersion}} Driver={{.Driver}} Containers={{.Containers}} Images={{.Images}}'
    docker system df
    
  2. Operate Compose stacks: pick a unique -p <project> for disposable stacks (up --wait fails on unhealthy services or 0-exit one-shot containers unless a dependent declares condition: service_completed_successfully, whereas up -d exits 0 once started):

    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 artifacts: run one-off containers with docker run --rm <existing-image-or-approved-digest> <command> and remove task-owned volumes, networks, images, and builders per resource cleanup.

Gotchas

  • Distro Buildx lags upstream: Debian ships Buildx 0.13; check docker buildx version before passing newer flags like --check.
  • Exit 137 != guaranteed OOM: inspect .State.OOMKilled and container/Colima VM memory limits before assuming OOM.

Task guides

  • 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.

Documentation

Files (dot)
  • references
    • containerize
      • templates
        • .dockerignore 387 B · in bundle
        • Dockerfile 1.7 KB · in bundle
      • GUIDE.md 4.2 KB
        Loading…
    • colima.md 1.3 KB
      Loading…
    • cosign.md 3 KB
      Loading…
    • resource-cleanup.md 1.2 KB
      Loading…
  • SKILL.md 3.3 KB
    ---
    name: docker
    description: "Run Docker, Compose, and Colima; build, scan, sign, and verify Python images."
    license: MIT
    metadata:
      kind: task
      author: Médéric HURIER (Fmind)
      source: github.com/fmind/dot/tree/main/skills/docker
      created: "2026-09-16"
      updated: "2026-11-11"
    ---
    
    # Docker and Container Runtime Management
    
    Manage local containers and Compose stacks with `docker`, `docker compose`, and `lazydocker`. [containerize](references/containerize/GUIDE.md) builds and signs Python images; [trivy](../code-security/references/trivy/GUIDE.md) scans them.
    
    Never auto-start a daemon or VM, mutate the default context, or touch existing containers/volumes without scope: inspect `docker context ls`, pass `docker --context <context>` explicitly, and confirm authority before running untrusted images or consequential workloads.
    
    ## Runtime Selection
    
    - **Linux**: host-installed Docker-compatible engine and Compose (outside user-space `mise`).
    - **macOS**: Colima instead of Docker Desktop (`colima`, `lima`, `docker-cli`, `docker-compose`, `docker-buildx` in global macOS `mise`); see [colima](references/colima.md).
    
    ## Workflow
    
    1. **Check daemon and disk headroom**: run `dot doctor --headroom` before large pulls or builds, then inspect daemon state:
    
       ```bash
       docker info --format 'Server={{.ServerVersion}} Driver={{.Driver}} Containers={{.Containers}} Images={{.Images}}'
       docker system df
       ```
    
    1. **Operate Compose stacks**: pick a unique `-p <project>` for disposable stacks (`up --wait` fails on unhealthy services or 0-exit one-shot containers unless a dependent declares `condition: service_completed_successfully`, whereas `up -d` exits 0 once started):
    
       ```bash
       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
       ```
    
    1. **Clean up task artifacts**: run one-off containers with `docker run --rm <existing-image-or-approved-digest> <command>` and remove task-owned volumes, networks, images, and builders per [resource cleanup](references/resource-cleanup.md).
    
    ## Gotchas
    
    - **Distro Buildx lags upstream**: Debian ships Buildx 0.13; check `docker buildx version` before passing newer flags like `--check`.
    - **Exit 137 != guaranteed OOM**: inspect `.State.OOMKilled` and container/Colima VM memory limits before assuming OOM.
    
    ## Task guides
    
    <!-- guides:start -->
    
    - [colima](references/colima.md): Run Docker on macOS through Colima: VM start, socket, memory limits, and mounts.
    - [containerize](references/containerize/GUIDE.md): Build, scan, sign, and verify Python container images with Trivy and Cosign.
    - [cosign](references/cosign.md): Sign, verify, and attest image digests with keyless Sigstore.
    
    <!-- guides:end -->
    
    ## Documentation
    
    - [Docker docs](https://docs.docker.com/) · [Compose](https://docs.docker.com/compose/) · [Lazydocker](https://github.com/jesseduffield/lazydocker) · [Engine releases](https://docs.docker.com/engine/release-notes/)
    - Companion skills: [cloud-run](../cloud-run/SKILL.md), [trivy](../code-security/references/trivy/GUIDE.md), [airflow](../airflow/SKILL.md).
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.