โ† All skills
Tencent SkillHub ยท Developer Tools

Docker (Essentials + Advanced)

Build, secure, and deploy Docker containers with image optimization, networking, and production-ready patterns.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Build, secure, and deploy Docker containers with image optimization, networking, and production-ready patterns.

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, commands.md, compose.md, images.md, infrastructure.md, security.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.4

Documentation

ClawHub primary doc Primary doc: SKILL.md 17 sections Open source page

When to Use

Use when the task involves Docker, Dockerfiles, container builds, Compose, image publishing, networking, volumes, logs, debugging, or production container operations. This skill is stateless and should be applied directly whenever Docker work appears.

Quick Reference

TopicFileEssential commandscommands.mdDockerfile patternsimages.mdCompose orchestrationcompose.mdNetworking & volumesinfrastructure.mdSecurity hardeningsecurity.md

1. Pin Image Versions

python:3.11.5-slim not python:latest Today's latest differs from tomorrow's โ€” breaks immutable builds

2. Combine RUN Commands

apt-get update && apt-get install -y pkg in ONE layer Separate layers = stale package cache weeks later

3. Non-Root by Default

Add USER nonroot in Dockerfile Running as root fails security scans and platform policies

4. Set Resource Limits

-m 512m on every container OOM killer strikes without warning otherwise

5. Configure Log Rotation

Default json-file driver has no size limit One chatty container fills disk and crashes host

Image Traps

Multi-stage builds: forgotten --from=builder copies from wrong stage silently COPY before RUN invalidates cache on every file change โ€” copy requirements first, install, then copy code ADD extracts archives automatically โ€” use COPY unless you need extraction Build args visible in image history โ€” never use for secrets

Runtime Traps

localhost inside container is container's localhost โ€” bind to 0.0.0.0 Port already in use: previous container still stopping โ€” wait or force remove Exit code 137 = OOM killed, 139 = segfault โ€” check with docker inspect --format='{{.State.ExitCode}}' No shell in distroless images โ€” docker cp files out or use debug sidecar

Networking Traps

Container DNS only works on custom networks โ€” default bridge can't resolve names Published ports bind to 0.0.0.0 โ€” use 127.0.0.1:5432:5432 for local-only Zombie connections from killed containers โ€” set health checks and restart policies

Compose Traps

depends_on waits for container start, not service ready โ€” use condition: service_healthy .env file in wrong directory silently ignored โ€” must be next to docker-compose.yml Volume mounts overwrite container files โ€” empty host dir = empty container dir YAML anchors don't work across files โ€” use multiple compose files instead

Volume Traps

Anonymous volumes accumulate silently โ€” use named volumes Bind mounts have permission issues โ€” container user must match host user docker system prune doesn't remove named volumes โ€” add --volumes flag Stopped container data persists until container removed

Resource Leaks

Dangling images grow unbounded โ€” docker image prune regularly Build cache grows forever โ€” docker builder prune reclaims space Stopped containers consume disk โ€” docker container prune or --rm on run Networks pile up from compose projects โ€” docker network prune

Secrets and Security

ENV and COPY bake secrets into layer history permanently โ€” use secrets mount or runtime env --privileged disables all security โ€” almost never needed, find specific capability instead Images from unknown registries may be malicious โ€” verify sources Build args visible in image history โ€” don't use for secrets

Debugging

Exit code 137 = OOM killed, 139 = segfault โ€” check docker inspect --format='{{.State.ExitCode}}' Container won't start: check logs even for failed containers โ€” docker logs <container> No shell in distroless images โ€” docker cp files out or use debug sidecar Inspect filesystem of dead container โ€” docker cp deadcontainer:/path ./local

Related Skills

Install with clawhub install <slug> if user confirms: devops โ€” deployment pipelines linux โ€” host system management server โ€” server administration

Feedback

If useful: clawhub star docker Stay updated: clawhub sync

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
6 Docs
  • SKILL.md Primary doc
  • commands.md Docs
  • compose.md Docs
  • images.md Docs
  • infrastructure.md Docs
  • security.md Docs