← 返回
开发者工具 中文

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.
通过docker-socket-proxy安全地管理远程Docker主机,支持容器生命周期、镜像、网络、卷、Swarm、插件和系统信息API。
bp602 bp602 来源
开发者工具 clawhub v1.0.0 1 版本 99871.5 Key: 无需
★ 1
Stars
📥 757
下载
💾 8
安装
1
版本
#latest

概述

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 <mode> [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

ModeDescription
-------------------
pingHealth check
versionDocker version
infoHost summary (containers, memory, etc.)
events [--since T] [--until T] [--filters k=v]Recent events (1s window)
system-dfDisk usage by images/containers/volumes

Containers

ModeDescription
-------------------
listRunning containers
list-allAll containers including stopped
inspect Full container details
top [ps-args]Running processes inside container
logs [tail]Container logs (default tail=100)
stats CPU, memory, network, block I/O
changes Filesystem changes since start
start Start container
stop [timeout]Stop container
restart [timeout]Restart container
kill [signal]Kill container (default SIGKILL)
pause Pause container
unpause Unpause container
rename Rename container
exec [args...]Run command in container
prune-containersRemove stopped containers

Images

ModeDescription
-------------------
imagesList images
image-inspect Image details
image-history Layer history
prune-imagesRemove unused images

Networks

ModeDescription
-------------------
networksList networks
network-inspect Network details and connected containers
prune-networksRemove unused networks

Volumes

ModeDescription
-------------------
volumesList volumes
volume-inspect Volume details
prune-volumesRemove unused volumes

Swarm

ModeDescription
-------------------
swarmSwarm info
nodesList nodes
node-inspect Node details
servicesList services
service-inspect Service details
service-logs [tail]Service logs
tasksList tasks
configsList configs
secretsList secrets

Plugins

ModeDescription
-------------------
pluginsList 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.
  • exec is two-step (create + start) and streams multiplexed output.
  • events uses a 1-second window by default; use --since / --until to adjust.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 19:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,803
it-ops-security

Tmux

steipete
通过发送按键和抓取窗格输出,远程控制交互式 CLI 的 tmux 会话。
★ 45 📥 29,275
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,362