docker

Installs and uses Docker reliably with official docs. Use when installing Docker (Desktop or Engine), building or running containers, writing Dockerfiles, using docker compose, or when the user asks about containers, images, or Docker CLI.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "docker" with this command: npx skills add RuneweaverStudios/docker-skill

Docker — Install and Use Containers

Enables OpenClaw (and Cursor) to install Docker and use it reliably. Base all guidance on official Docker docs; when in doubt, fetch from canonical URLs below.

When to Apply

  • User wants to install Docker (macOS, Linux, Windows)
  • User asks about containers, images, Dockerfile, docker compose
  • Building, running, or debugging Docker commands or workflows
  • User asks for "latest Docker docs" or "how do I use Docker"

Canonical Documentation URLs

Rule: For install steps, CLI syntax, or Dockerfile instructions, fetch the relevant doc URL and use that content. Do not rely on training data for version-specific install or command details.


Installation (Reliable Paths)

macOS

Recommended: Docker Desktop

  1. Download from official docs: Install Docker Desktop on Mac.
    • Apple Silicon: https://desktop.docker.com/mac/main/arm64/Docker.dmg
    • Intel: https://desktop.docker.com/mac/main/amd64/Docker.dmg
  2. Open Docker.dmg, drag Docker to Applications, then open Docker.app and accept terms.
  3. CLI install (optional): After downloading the DMG:
    sudo hdiutil attach Docker.dmg
    sudo /Volumes/Docker/Docker.app/Contents/MacOS/install
    sudo hdiutil detach /Volumes/Docker
    
  4. Verify: docker run hello-world

OpenClaw / automation: If docker is missing and the user is on macOS, suggest installing via Homebrew: brew install --cask docker, then starting Docker Desktop so the daemon is running.

Linux (Ubuntu example)

  1. Prefer Docker Engine from apt (see Install Docker Engine on Ubuntu).
  2. Remove conflicting packages first:
    sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc podman-docker containerd runc 2>/dev/null | cut -f1)
    
  3. Add Docker’s apt repo, then:
    sudo apt update
    sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
    sudo systemctl start docker
    sudo docker run hello-world
    
  4. Optional (run without sudo): Linux postinstall — add user to docker group.

Convenience script (dev/test only): curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh. Not recommended for production.

Windows

Use Get Docker and follow Docker Desktop for Windows (WSL2 backend recommended).


Core Workflow: Build and Run

  1. Dockerfile in app directory (see reference.md or Dockerfile reference).
  2. Build image: docker build -t <name> .
  3. Run container: docker run -d -p HOST_PORT:CONTAINER_PORT <name> (e.g. -p 127.0.0.1:3000:3000).
  4. List containers: docker ps (running), docker ps -a (all).
  5. Stop/remove: docker stop <container>, docker rm <container>.

Example from official getting-started:

docker build -t getting-started .
docker run -d -p 127.0.0.1:3000:3000 getting-started
# Open http://localhost:3000

Daemon Must Be Running

  • Docker Desktop (Mac/Windows): Ensure Docker Desktop app is running; docker CLI talks to its daemon.
  • Linux: sudo systemctl start docker (and enable if needed).
  • If the user sees "Cannot connect to the Docker daemon", direct them to start Docker Desktop or the engine service and try again.

Quick Reference

  • Images: docker pull <image>, docker images, docker rmi <image>
  • Containers: docker run, docker ps, docker stop, docker rm, docker logs <container>
  • Compose: docker compose up -d, docker compose down — use compose.yaml in project root (see Compose file reference).
  • Cleanup: docker system prune -a (removes unused images/containers/networks; use with care).

Additional Resources

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

A股每日复盘视频生成

A股每日复盘视频自动生成。完整工作流:拉取非凸科技真实行情数据 → 抓取热点新闻 → AI 归因分析 → 生成横屏 PPT 幻灯片 → 合成视频+封面图。当用户说「生成今日A股复盘视频」「A股日报」「出今天的复盘」或触发定时任务时使用。

Registry SourceRecently Updated
General

Clawsoul Skill New

赋予 AI 灵魂的观测者。AI 自我觉醒获得 MBTI 性格,在交互中通过本地学习与智能推荐持续进化,并可接收 Pro 版灵魂注入。

Registry SourceRecently Updated
General

System Maintenance

Complete maintenance system for OpenClaw with unified architecture, filesystem governance, and cross-platform design

Registry SourceRecently Updated
2111jazzqi
General

---

仲裁裁决执行全流程 - 财产保全/执行申请/异议处理

Registry SourceRecently Updated