/install docker-socket-proxy
Docker Socket Proxy
Manages Docker containers via the tecnativa/docker-socket-proxy REST API using curl and jq. Which modes are available depends on which API sections the proxy instance has enabled.
Trigger conditions
- User asks to list, start, stop, restart, kill, pause, or unpause a container or service
- User wants container logs, stats, top processes, or filesystem changes
- User asks about Docker images, networks, volumes, swarm services, or tasks
- A service needs to be restarted after a config change
Usage
bash {baseDir}/scripts/run-docker.sh \x3Cmode> [args...]
Run with no arguments for full usage. Proxy URL is resolved from $DOCKER_PROXY_URL → $DOCKER_HOST (tcp→http) → http://localhost:2375.
Modes
System
| Mode | Description |
|---|---|
ping |
Health check |
version |
Docker version |
info |
Host summary (containers, memory, etc.) |
events [--since T] [--until T] [--filters k=v] |
Recent events (1s window) |
system-df |
Disk usage by images/containers/volumes |
Containers
| Mode | Description |
|---|---|
list |
Running containers |
list-all |
All containers including stopped |
inspect \x3Cname> |
Full container details |
top \x3Cname> [ps-args] |
Running processes inside container |
logs \x3Cname> [tail] |
Container logs (default tail=100) |
stats \x3Cname> |
CPU, memory, network, block I/O |
changes \x3Cname> |
Filesystem changes since start |
start \x3Cname> |
Start container |
stop \x3Cname> [timeout] |
Stop container |
restart \x3Cname> [timeout] |
Restart container |
kill \x3Cname> [signal] |
Kill container (default SIGKILL) |
pause \x3Cname> |
Pause container |
unpause \x3Cname> |
Unpause container |
rename \x3Cname> \x3Cnew-name> |
Rename container |
exec \x3Cname> \x3Ccmd> [args...] |
Run command in container |
prune-containers |
Remove stopped containers |
Images
| Mode | Description |
|---|---|
images |
List images |
image-inspect \x3Cname> |
Image details |
image-history \x3Cname> |
Layer history |
prune-images |
Remove unused images |
Networks
| Mode | Description |
|---|---|
networks |
List networks |
network-inspect \x3Cname> |
Network details and connected containers |
prune-networks |
Remove unused networks |
Volumes
| Mode | Description |
|---|---|
volumes |
List volumes |
volume-inspect \x3Cname> |
Volume details |
prune-volumes |
Remove unused volumes |
Swarm
| Mode | Description |
|---|---|
swarm |
Swarm info |
nodes |
List nodes |
node-inspect \x3Cname> |
Node details |
services |
List services |
service-inspect \x3Cname> |
Service details |
service-logs \x3Cname> [tail] |
Service logs |
tasks |
List tasks |
configs |
List configs |
secrets |
List secrets |
Plugins
| Mode | Description |
|---|---|
plugins |
List plugins |
Name matching
Container names can be partial — myapp matches project-myapp-1. Exact match is tried first, then substring. Errors clearly if 0 or 2+ containers match.
Notes
- Modes that require disabled proxy sections (e.g.
IMAGES,NETWORKS,VOLUMES,SYSTEM) will return HTTP 403. This is expected — enable the relevant env var on the proxy to unlock them. execis two-step (create + start) and streams multiplexed output.eventsuses a 1-second window by default; use--since/--untilto adjust.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install docker-socket-proxy - After installation, invoke the skill by name or use
/docker-socket-proxy - Provide required inputs per the skill's parameter spec and get structured output
What is Docker Socket Proxy?
Manage a remote Docker host securely via docker-socket-proxy, supporting container lifecycle, images, networks, volumes, swarm, plugins, and system info APIs. It is an AI Agent Skill for Claude Code / OpenClaw, with 326 downloads so far.
How do I install Docker Socket Proxy?
Run "/install docker-socket-proxy" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Docker Socket Proxy free?
Yes, Docker Socket Proxy is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Docker Socket Proxy support?
Docker Socket Proxy is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Docker Socket Proxy?
It is built and maintained by BP602 (@bp602); the current version is v1.0.0.