kiri-docker
Skill5 starsChanged 3 days agoMITView on GitHub
Trigger: docker, docker compose, buildx, contenedor, imagen, levantar servicios, docker run/exec, kiri, dominio .kiri.local, k8s local, kiri share. Run all Docker work against Kiri, the only runtime.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alvaroofernaandez/dotfilesword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- alvaroofernaandez/dotfiles★ 5100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- aval-architectureSkill
- aval-docsSkill
- aval-release-notesSkill
- aval-releaseSkill
- aval-testingSkill
- accessibilitySkill
- ai-sdk-5Skill
- architecture-evidenceSkill
- branch-prSkill
- chained-prSkill
- cognitive-doc-designSkill
- design-pipelineSkill
- design-refactorSkill
- docker-build-optimizedSkill
- docker-space-optimizerSkill
- herdrSkill
- issue-creation-proSkill
- kiri-healthSkill
- laws-of-uxSkill
- lightpanda-browserSkill
- mac-disk-cleanupSkill
- pdf-reportSkill
- plan-deckSkill
- prs-proSkill
- react-19Skill
- readme-guardianSkill
- readme-portalSkill
- repo-prepSkill
- skill-creatorSkill
- strict-tddSkill
- tailwind-4Skill
- typescriptSkill
- work-unit-commitsSkill
- zod-4Skill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Check docker context show before operating.
- Very specific: line 17
Never set DOCKER_HOST; the context is the single source of truth.
- Very specific: line 19
Verify every image you will push or deploy as amd64: docker image inspect -f '{{.Architecture}}' <image> must print amd64.
- Very specific: line 23
Never run kiri ui (not even --help) unasked: it opens the window and the window installs pending Kiri updates.
- Very specific: line 51
Run aval kiri up (starts Kiri if needed, fixes the context and builder, flags a foreign /var/run/docker.sock).
- Very specific: line 53
Run the task with docker, docker compose or docker buildx.
- Very specific: line 55
After configuring or repairing the environment, prove it with docker run --rm hello-world.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Activation Contract
Load for any Docker task on this Mac: running or building images, containers, Compose stacks, Buildx, docker exec, logs, local domains, Kubernetes, sharing a port, or repairing the Docker environment.
Hard Rules
- Kiri (0.2.x, beta) is the ONLY permitted runtime. Never use, install or recommend OrbStack, Colima, Lima, Docker Desktop or Podman.
- Check
docker context showbefore operating; it must bekiri(socket~/.kiri/run/docker.sock;/var/run/docker.socklinks to it). If not, rundocker context use kiri, and if the context is missing, loadkiri-health. - Never set
DOCKER_HOST; the context is the single source of truth. - BUILDS: always run with
BUILDX_BUILDER=multiarch(exported in~/.zprofileand~/.zshrc). Kiri's own builderkiriresolves docker.io/quay.io through a mirror of its single-arch local store, so--platform linux/amd64silently yields an ARM64 image when the base exists locally (warningInvalidBaseImagePlatform). Never build deploy images on thekiribuilder. - Verify every image you will push or deploy as amd64:
docker image inspect -f '{{.Architecture}}' <image>must printamd64. buildx build --add-host x:host-gatewayfails on docker-container builders; use198.19.248.254(host gateway on this Mac).- Stopping containers is safe;
docker compose down -v,docker rm -vor deleting volumes needs explicit confirmation. - Kubernetes stays stopped unless the user asks (
kiri k8s start). - Never run
kiri ui(not even--help) unasked: it opens the window and the window installs pending Kiri updates. - Slow builds,
compose upwith long boot, image pushes: run them in a Herdr terminal (hc run --bg --name <x> -- zsh -ic '<cmd>', seeherdr) so you stay reachable. - The VM sleeps after 60 s idle and wakes in ~0.15 s: a sleeping VM is normal, not a fault.
Decision Gates
| Situation | Command |
| Start a stack | docker compose up -d (add --build after code changes) |
| Stop a stack, keep data | docker compose down |
| Build for this Mac | docker build -t <app>:local . (builder multiarch, native arm64) |
| Build amd64 for deploy | docker build --platform linux/amd64 -t <app>:<tag> . then verify Architecture |
| Run an amd64 image | docker run --platform linux/amd64 ... (Rosetta) |
Docker not answering, wrong context, multiarch builder missing | aval kiri up (idempotent; creates the builder with a bounded BuildKit cache, 20 GB max) |
| Local domain for a container | http(s)://<container>.kiri.local; compose: <service>.<project>.kiri.local; custom: label dev.kiri.domain=api.myapp; *.kiri.localhost needs no setup |
| Reach the host from a container | host.docker.internal (gateway IP 198.19.248.254) |
| Public link to a port/container | kiri share <PORT|CONTAINER> (exposes it publicly: confirm first) |
| Local Kubernetes | kiri k8s start|stop|status|delete (k3s, kubectl context kiri) |
| Linux machine | kiri machine create NAME --distro ubuntu |
| Import from another runtime | kiri import [orbstack|desktop-linux] [--list] (imports ALL images, not selective) |
| Shell into a container | docker exec -it <name> sh |
| VM resources | ~/.kiri/vm.json {"cpus": 6, "memory_mib": 8192} (this Mac: M4, 10 cores, 16 GB); CPUs are only used while containers are busy; applied on next VM start (launchctl kickstart -k gui/$(id -u)/dev.kiri.daemon, stops running containers: ask first) |
| Update Kiri | kiri update --check |
| Docker misbehaves | kiri-health |
| Low disk space | docker-space-optimizer |
Execution Steps
- Run
aval kiri up(starts Kiri if needed, fixes the context and builder, flags a foreign/var/run/docker.sock). - For builds,
echo $BUILDX_BUILDER→ must bemultiarch; export it for the session if empty. - Run the task with
docker,docker composeordocker buildx. - For deploy images, run the amd64 verification before pushing.
- After configuring or repairing the environment, prove it with
docker run --rm hello-world.
Output Contract
Return the commands run, their relevant output, the active context and builder, the verified image architecture when a build was involved, and the state of affected containers (docker compose ps or docker ps).
References
../kiri-health/SKILL.md— diagnosis and recovery.../docker-build-optimized/SKILL.md— builds.../docker-space-optimizer/SKILL.md— disk space.
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
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.

