본문으로 건너뛰기
cccskills
무료GitHub에 공개

ls-docker-build-compose

Guide Docker and Podman builds, Compose, rootless containers, runtime management, networking, storage, secrets, and troubleshooting. Preserve the selected engine and endpoint; do not escalate rootless failures or manage host installations implicitly.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Docker
설치 방법 보기

포함된 파일(1)

  • SKILL.md6.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Docker and Podman containers

Use this skill for Dockerfiles, Containerfiles, Compose projects, container builds, operation, and LocalSetup installations inside containers. The published skill name and existing aliases remain compatible.

Select the existing context

Inspect the repository, project instructions, engine configuration and endpoint first. Dockerfile and Containerfile (including named variants), compose.yaml, compose.yml, and docker-compose YAML variants identify container work; they do not select an engine. Preserve an explicitly configured Docker or Podman engine, remote endpoint, and privilege mode. For a newly selected Podman workflow, default to rootless. Retain explicitly selected rootful operation. Do not substitute engines, add sudo, mount a host socket, or enable privileged containers to work around a rootless failure.

Record the effective context using docker context show and docker info, or podman system connection list and podman info, as appropriate. Inspect only needed fields; full inspection output can contain private paths and configuration. Verify rootless operation from the selected engine's reported security mode, not just the UID of the client process. A non-root Docker client can control a rootful daemon.

Qualify rootless operation

Before changing host configuration, diagnose the selected environment:

  • Check user namespace availability and newuidmap/newgidmap, subordinate UID/GID mappings, and the engine's actual rootless mode. Docker requires at least 65,536 subordinate UIDs and GIDs. Inspect mappings inside a disposable container too.
  • Verify writable home, runtime directory, engine storage and persistent application state. Resolve paths inside the container; never infer a host home from a mount.
  • Check bind-mount ownership and permissions for the mapped container UID. Prefer purpose-built volumes or deliberate user mappings. Do not recursively chown a host directory. Podman's :U changes source ownership and needs an explicit scope decision.
  • Inspect the actual storage driver and backing filesystem. Follow engine diagnostics for overlay or FUSE support; do not silently replace the configured storage root.
  • Qualify rootless networking, DNS, published ports and host reachability with a small disposable workload. Port binding and networking capabilities differ by engine.
  • On SELinux systems, inspect labels and choose an appropriate scoped :z or :Z mount only when intended; never relabel system or home trees or disable enforcement.

A failed prerequisite is a concrete blocker. Provide the scoped remedy without changing the privilege mode. Host installation or privileged repair follows the existing sudo workflow and the user's authorization.

Build and operate

Inspect the base image, build context, ignore file, multi-stage build, dependency cache, runtime user, exposed ports, volumes, health checks, and signal handling. Use the project's package manager and existing validation commands. Keep secrets out of image layers, build args, logs and committed Compose files; use the selected engine's supported build-secret or runtime-secret mechanism and verify provider support.

Build with the selected engine and explicit file/context. Inspect and start the result in a disposable container, test readiness, logs, networking and persistent storage, then stop and remove only task-owned resources. Check non-root application execution, clean shutdown, rebuild determinism and image size. Rootless engine mode and non-root application user are separate properties; verify both where required.

For Compose, identify the actual installed provider and version before relying on features. podman compose delegates to an external provider; inspect PODMAN_COMPOSE_PROVIDER, containers.conf, and podman compose --help rather than assuming Docker Compose semantics. Use docker compose version for the selected Docker plugin. Validate configuration without printing resolved secrets, then test build/start/readiness/stop with the selected provider. Preserve its project name, endpoint and privilege mode.

LocalSetup inside a container

Use the normal installer, self-refresh, doctor, and package discovery commands in an isolated container home. Keep the selected LocalSetup data/package root, adapter records, resolver manifest and project attachment state writable and persistent where recreation must retain them. Resolve package links in the container namespace; portable adapters must not contain host paths. Bind only the intended test source read-only; use a disposable writable project attachment and home rather than the host home.

Run install and a repeated upgrade in both symlink and portable modes, query canonical packages through the recorded client integration, and run doctor. Recreate the container with the same state volume and verify discovery, ownership and idempotent refresh again. For a read-only image installation, rebuild the image with the updated packages, or configure writable persistent state for this selected installation. Do not repair the host installation or remount the image writable implicitly.

Actual Docker, rootless Docker, and rootless Podman runs are required when claiming cross-engine container acceptance. Mocked tests cannot establish runtime compatibility. Record an unavailable runtime as a validation blocker; never substitute a rootful run.

Troubleshooting and boundaries

Separate engine/endpoint connectivity, user mappings, mount permissions, networking, storage, Compose provider errors, and application failures. Preserve failed-container logs privately after removing secrets. Give one scoped next step based on the evidence. Inspect the target repository before edits and preserve its established patterns. Do not expose credentials, private paths, or production identifiers in public output. Verify changing vendor behavior against official sources before relying on it.

References and provenance

Source classification: official-docs-reference. This LocalSetup-native skill follows project workflow requirements and official documentation; no third-party text is copied.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 22일 업데이트

CruxExperts의 스킬 모두 보기

이 스킬의 문제 신고