OpenClaw Docker Plugin for Openclaw

A powerful plugin for managing Docker environments and Compose projects through AI agent commands.

homeofe
v0.2.0
Mar 3, 2026
0
594
3

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install openclaw-docker

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install openclaw-docker using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is OpenClaw Docker Plugin?

The OpenClaw Docker plugin is a robust bridge between AI agents and containerized infrastructure. As one of the essential Openclaw Skills, it provides a comprehensive toolset for interacting with the Docker Engine via local Unix sockets or remote TCP connections with full TLS support. This plugin empowers developers to automate container lifecycles and manage multi-container applications without leaving their AI-driven workflows.

Designed with security as a priority, the skill offers granular permissions and safety controls. By integrating directly with the Docker CLI, it enables advanced orchestration capabilities, including Docker Compose support for predefined projects. Whether you are troubleshooting logs or deploying new services, this skill streamlines DevOps tasks within the ecosystem of Openclaw Skills.

OpenClaw Docker Plugin Use Cases

  • Monitoring container health and listing running processes across environments.
  • Retrieving and analyzing container logs for debugging and incident response.
  • Managing service lifecycles through start, stop, and restart commands.
  • Orchestrating complex stacks using Docker Compose up and down operations.
  • Inspecting container configurations and metadata for system auditing.

How OpenClaw Docker Plugin Works

  1. The plugin establishes a secure connection to the Docker daemon using either a local Unix socket or a remote TCP endpoint.
  2. It validates the requested operation against the configured allowedOperations and readOnly settings to ensure security compliance.
  3. For Compose-specific tasks, the skill maps commands to authorized directories defined in the composeProjects configuration.
  4. The AI agent executes specific tools like docker_ps or docker_compose_up to interact with the Docker CLI.
  5. Results, such as container status or log output, are returned to the agent within the defined timeoutMs window.

OpenClaw Docker Plugin Setup

Ensure you have Docker Engine and Docker CLI installed. then, install the plugin via npm:

npm install @elvatis_com/openclaw-docker

Configure your local socket in the Openclaw Skills settings:

{
  "plugins": {
    "openclaw-docker": {
      "socketPath": "/var/run/docker.sock",
      "readOnly": false,
      "allowedOperations": ["ps", "logs", "inspect", "start", "stop", "restart", "compose_up", "compose_down", "compose_ps"],
      "composeProjects": [{ "name": "my-app", "path": "/opt/my-app" }],
      "timeoutMs": 15000
    }
  }
}

OpenClaw Docker Plugin Data Schema & Taxonomy

This skill interacts with the Docker API and filesystem to manage container state and project configurations. Data is organized as follows:

Component Description
Container Operations Includes ps, logs, inspect, start, stop, and restart functionality.
Compose Projects Named project paths authorized for orchestration commands.
Security Config Defines TLS paths (ca.pem, cert.pem, key.pem) and read-only flags.
Tool Mapping Maps AI commands to specific Docker CLI and API calls.

OpenClaw Docker Plugin Advanced Features

  • Remote Docker daemon support with secure TLS authentication.
  • Granular safety controls using readOnly mode to prevent accidental environment changes.
  • Project-scoped Docker Compose management to limit agent access to specific directories.
  • Custom operation white-listing via the allowedOperations array for precise permission management.
  • Automatic command timeout protection to prevent hanging processes in the agent workflow.

SKILL.md


Loading

Related Openclaw Skills

Featured*