Home Tutorials Categories Skills About
ZH EN JA KO
🐳

Docker

DevOps Developer Tools

Install Command

npx clawhub@latest install docker

Installation Guide

1
Check Environment

Make sure Node.js 22+ and OpenClaw are installed. Run openclaw --version in your terminal to verify.

2
Run Installation

Run the install command above in your terminal. ClawHub will automatically download and install Docker to the ~/.openclaw/skills/ directory.

3
Verify Installation

Run openclaw skills list to check your installed skills and confirm Docker appears in the list.

4
Configure (Optional)

Follow the configuration instructions in the description below to add skill settings to ~/.config/openclaw/openclaw.json5.

Manual Installation: Copy the Skill folder to ~/.openclaw/skills/ or the skills/ directory in your project root. Make sure the folder contains a SKILL.md file.
Container Management Image Building Log Viewing

Detailed Description

The Docker skill lets OpenClaw directly control your Docker environment, managing containers, images, and services with natural language, greatly simplifying daily Docker operations.

Core Features

  • Container Management: List, start, stop, restart, and delete containers
  • Log Viewing: Read container logs with support for real-time tailing and time range filtering
  • Image Management: Pull, build, list, and delete Docker images
  • Compose Support: Manage Docker Compose project services
  • Networks and Volumes: View and manage Docker networks and data volumes
  • Container Stats: View container CPU, memory, and network usage

Configuration

Ensure the OpenClaw process has access to the Docker Socket.

{
  skills: {
    docker: {
      socketPath: "/var/run/docker.sock",
      allowDestructive: false  // Whether to allow delete operations
    }
  }
}

Use Cases

  • "List all running containers"
  • "Are there any errors in the nginx container's recent logs?"
  • "Restart the web-app container"
  • "Pull the latest postgres:16 image"
  • "Which container is using the most memory?"

Security Tips

The Docker Socket has very high privileges. It is recommended to set allowDestructive: false to prevent accidental deletion of containers and images. For production environments, consider limiting permissions through a Docker API proxy.