docker-no-root
Never run Docker containers as root. Enforce USER directive in Dockerfiles and user: in compose files. Database images are the only exception.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Never run Docker containers as root. Enforce USER directive in Dockerfiles and user: in compose files. Database images are the only exception.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Handle packages migrating between pnpm workspaces. Clean stale root copies, update workspace configs, fix broken workspace:* references.
Recover lost source files from pi session history when files were deleted but never committed to git.
Improve the Hormuz clock model through new signal classes, schema changes, uncertainty modeling, and better rendering or branch logic
Revise fork-tax protocols so they assume concurrent agents by default in shared workspaces, forbid destructive repo-wide cleanup of unrelated dirt, and require path-scoped staging plus explicit blocker recording.
Persist the full working state into git (commit + tag + push + manifest artifacts) as a deterministic handoff snapshot. Use when the user requests Π / fork tax / full dump.
Standardize human login, service identity, and inter-service auth around AT Protocol DIDs and Bluesky-backed one-time sign-in, while removing host-local static secrets and bespoke per-service auth flows.
| name | docker-no-root |
| description | Never run Docker containers as root. Enforce USER directive in Dockerfiles and user: in compose files. Database images are the only exception. |
| triggers | ["docker","compose","container","Dockerfile","deploy"] |
No application container in any service stack may run as PID 1 root (user: 0:0).
RUN steps BEFORE the USER directive.USER 1000:1000 (or USER node if using official Node images) after all RUN steps that need elevated permissions.CMD/ENTRYPOINT must execute as the non-root user.node:*, python:*, nginx:*, etc.) MUST have user: "${DOCKER_USER:-1000:1000}".USER directives do not need a compose-level user: (Dockerfile wins).user: "0:0" with a comment # init container.mongot) placeholder containers MAY use root with a comment.EACCES errors in a non-root container, check for root-owned files in the shared mount from sibling containers.pnpm install / npm install in the container that owns the mount, not from the host.user: "0:0" on application services to work around permission issues.npm install -g as non-root without a --prefix flag.corepack enable as non-root on images where /usr/local/bin is root-owned.FROM node:22-bookworm-slim
RUN corepack enable && corepack prepare pnpm@latest --activate
USER 1000:1000