返回顶部
d

docker-eng

Deep Docker workflow—image design, multi-stage builds, security, runtime config, health checks, and operations. Use when containerizing apps, hardening images, or debugging container behavior in CI and production.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
79
下载量
0
收藏
概述
安装方式
版本历史

docker-eng

# Docker Eng — Deep Workflow Containers package applications with their dependencies. Optimize for **small**, **reproducible** images and **clear** runtime contracts—not “SSH into a mini VM.” ## When to Offer This Workflow **Trigger conditions:** - Authoring Dockerfiles for apps or CI - CVEs in base images; accidental secrets in layers - Slow builds or oversized images pushing registry costs **Initial offer:** Use **six stages**: (1) base image & supply chain, (2) Dockerfile structure, (3) runtime config & secrets, (4) security hardening, (5) health & observability, (6) ops & debugging). Confirm registry and orchestrator (Kubernetes, ECS, etc.). --- ## Stage 1: Base Image & Supply Chain **Goal:** Pin tags or digests; prefer minimal bases (distroless, slim) when compatible. ### Practices - Scan images regularly (Trivy, Grype); track SBOM where required --- ## Stage 2: Dockerfile Structure **Goal:** Multi-stage builds: compile in builder, copy only artifacts to runtime; order layers for cache hits (dependency manifests before source). ### Practices - Maintain a robust `.dockerignore` (exclude secrets, build artifacts, VCS noise) --- ## Stage 3: Runtime Config & Secrets **Goal:** Configuration via environment variables; secrets injected at runtime (K8s secrets, IAM, vault)—never `COPY` real secrets into the image. --- ## Stage 4: Security Hardening **Goal:** Run as non-root; read-only filesystem where possible; minimal packages in final image; avoid leaking build tools in production. --- ## Stage 5: Health & Observability **Goal:** `HEALTHCHECK` or orchestrator probes match real readiness (dependencies up); logs to stdout/stderr in structured form. --- ## Stage 6: Ops & Debugging **Goal:** Tag images with git SHA; document how to exec/debug (or use debug sidecars for distroless). --- ## Final Review Checklist - [ ] Base image pinned and scanned - [ ] Multi-stage build; minimal runtime layer - [ ] No secrets in layers - [ ] Non-root and least privilege - [ ] Health/readiness aligned with app - [ ] .dockerignore and reproducible builds ## Tips for Effective Guidance - Explain layer caching order—why `COPY package.json` before `COPY .` matters. - Distroless images: no shell—use ephemeral debug containers or sidecars. ## Handling Deviations - Windows containers: different paths and base images—validate separately.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 docker-eng-1775984354 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 docker-eng-1775984354 技能

通过命令行安装

skillhub install docker-eng-1775984354

下载 Zip 包

⬇ 下载 docker-eng v1.0.0

文件大小: 1.9 KB | 发布时间: 2026-4-13 10:04

v1.0.0 最新 2026-4-13 10:04
docker-eng 1.0.0 — initial release

- Provides a comprehensive Docker workflow covering image design, multi-stage builds, security, runtime configuration, health checks, and operational debugging.
- Offers guidance for containerizing applications, hardening images, and troubleshooting container behavior in CI and production.
- Defines six practical workflow stages: base image selection, Dockerfile structuring, runtime config & secrets, security hardening, health/observability, and ops/debugging.
- Includes a detailed checklist and key tips for best practices and handling special cases like distroless and Windows containers.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部