✓ Verified 💻 Development ✓ Enhanced Data

Docker Skill

Installs and uses Docker reliably with official docs.

Rating
4.8 (486 reviews)
Downloads
1,994 downloads
Version
1.0.0

Overview

Installs and uses Docker reliably with official docs.

Complete Documentation

View Source →

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

PurposeURL
Get started / overviewhttps://docs.docker.com/get-started/overview/
Get Docker (install)https://docs.docker.com/get-started/get-docker/
Develop with containershttps://docs.docker.com/get-started/introduction/develop-with-containers/
Guideshttps://docs.docker.com/guides/
Manuals (install, config, use)https://docs.docker.com/manuals/
Reference (CLI, Dockerfile, API)https://docs.docker.com/reference/
Engine install (Linux)https://docs.docker.com/engine/install/
Docker Desktop Machttps://docs.docker.com/desktop/install/mac-install/
Docker CLI referencehttps://docs.docker.com/reference/cli/docker/
Dockerfile referencehttps://docs.docker.com/reference/dockerfile/
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

  • 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
  • Open Docker.dmg, drag Docker to Applications, then open Docker.app and accept terms.
  • CLI install (optional): After downloading the DMG:
bash
sudo hdiutil attach Docker.dmg
   sudo /Volumes/Docker/Docker.app/Contents/MacOS/install
   sudo hdiutil detach /Volumes/Docker
  • 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)

bash
sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc podman-docker containerd runc 2>/dev/null | cut -f1)
  • Add Docker’s apt repo, then:
bash
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
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

  • Dockerfile in app directory (see reference.md or Dockerfile reference).
  • Build image: docker build -t .
  • Run container: docker run -d -p HOST_PORT:CONTAINER_PORT (e.g. -p 127.0.0.1:3000:3000).
  • List containers: docker ps (running), docker ps -a (all).
  • Stop/remove: docker stop , docker rm .
Example from official getting-started:

bash
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 , docker images, docker rmi
  • Containers: docker run, docker ps, docker stop, docker rm, docker logs
  • 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

Installation

Terminal bash

openclaw install docker-skill
    
Copied!

💻Code Examples

example.sh
sudo hdiutil attach Docker.dmg
   sudo /Volumes/Docker/Docker.app/Contents/MacOS/install
   sudo hdiutil detach /Volumes/Docker
example.sh
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
example.sh
docker build -t getting-started .
docker run -d -p 127.0.0.1:3000:3000 getting-started
# Open http://localhost:3000

Tags

#devops_and-cloud #docker

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author runeweaverstudios
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install docker-skill