DSH Plugins Marketplace

DSH Plugins

Plugins

/

Security & Audit

/

dsh-docker

S

dsh-docker

Manifest valid★ 3

DeepSeek Harness Container Management Plugin: seven tools — docker_ps/images/logs/inspect/exec/manage/health, official subprocess service, argv with no shell injection, exec and destructive manage require default approval, zero runtime dependencies. · Containers for DeepSeek Harness agents. Verified compatible with DeepSeek Harn

hasBundlePatch

English

dsh-docker

你的 agent 会管容器了:七个工具覆盖容器/镜像列表、日志、详情、容器内执行、生命周期管理与健康检查。

DSH(DeepSeek Harness)容器管理插件:走官方 subprocess 服务跑 docker CLI,argv 数组无 shell 注入,docker_exec 与破坏性生命周期操作默认审批门,零运行时依赖。

npm version npm downloads license stars

Awesome DSH Plugin

兼容性

已在官方 @deepseek-ai/dsh@0.1.5-rc.1、Node 24.16.0 上验证(2026-09-11):18 个组件与 Modlens 同载,工具 schema、技能注册及离线只读调用检查通过。采用 cordis.patch.yml + dsh.bundle.patch 组合包模型。Node 要求与该版本 Harness 一致:22.19 及以上的 22.x,或 24 及以上。外部服务的实际业务操作需按各组件配置单独验证。

2026-09-13 修复:保留宿主 subprocess.spawn 的服务对象,避免方法独立传递后因 this 丢失而报错。已在官方 0.1.5-rc.1 和 0.1.5-rc.2、Node 24.16.0 上验证。docker_ps 已通过真实宿主进程服务验证;Docker 输出由 Node 子进程生成的固定测试数据提供,未连接真实 Docker daemon。

安装

dsh plugin --profile web add @stardustlc/dsh-docker

需要本机装有 Docker(docker version 能出结果即可);不在 PATH 上时用 dockerPath 指定。

卸载

dsh plugin --profile web remove @stardustlc/dsh-docker

卸载后重启 Web 服务。如需彻底清理,可再手动删除自己 profile cordis.patch.yml 中覆盖的插件行。

配置

- id: docker
  name: '@stardustlc/dsh-docker'
  config:
    # dockerPath: C:\Program Files\Docker\Docker\resources\bin\docker.exe
    dockerPath: docker     # 可选;也可用环境变量 DSH_DOCKER_PATH
    timeoutMs: 60000       # 单次操作超时(默认 60 秒,5 秒 - 10 分钟)
    # execApproval: false  # 关闭 docker_exec 审批门(默认 true)
    # manageApproval: false # 关闭 stop/restart/rm 审批门(默认 true,不推荐)

工具一览

工具作用安全
docker_ps列出容器(状态/镜像/运行态,可过滤)—
docker_images列出本地镜像(仓库/标签/大小/创建时间,可只看悬空镜像)—
docker_logs查看日志尾部(行数钳制,可短时 follow)—
docker_inspect容器详情(镜像/状态/端口)—
docker_exec容器内执行命令审批门 + 容器名白名单校验
docker_managestart / stop / restart / rmstop/restart/rm 审批门
docker_healthDocker daemon 与安全配置自检—

示例

docker_ps {}
docker_ps { all: true, name: web }
docker_images { dangling: true }
docker_logs { container: web, tail: 200 }
docker_inspect { container: web }
docker_exec { container: web, command: 'df -h' }
docker_manage { container: web, action: restart }

安全设计

  • 无 shell:全部参数独立 argv 数组,命令注入不可能
  • 审批门:docker_exec 与 docker_manage 的 stop/restart/rm 默认弹审批;headless 无审批通道时拒绝
  • 容器名校验:只允许 [A-Za-z0-9][A-Za-z0-9_.:-]*,杜绝参数注入
  • 超时钳制:单次操作 5 秒 - 10 分钟;follow 模式额外限 30 秒
  • 日志钳制:tail 1-2000 行

开发

pnpm install
pnpm test       # 构建 + 35 个测试

License

MIT

Compatibility

DSH 0.2.1-rc.4: failedDSH 0.2.1-rc.3: failedDSH 0.1.7-alpha.2: failed

Versions

Latest versionPublishedSize
0.1.0——
0.1.1——
0.2.0——
0.3.0——
0.3.1——
0.3.2——
0.3.3——
0.3.4——
0.4.0——
0.4.1——
0.5.2——
0.5.3——
0.4.2——
0.4.3——
0.5.0——
0.5.1——

Comments

Loading…

Similar plugins

dsh-sql

by STARDUSTLC666

DeepSeek Harness 工程师级数据库插件:sql_list/query/exec/schema/stats/health 六工具,SQLite/MySQL/PostgreSQL 三引擎、词法级只读保护、写审批门、行数钳制、CSV/JSON 查询输出。· Databases for DeepSeek Harness agents. 已验证兼容 DeepSeek Harness v0.1.

Tools & CapabilitiesManifest valid

★ 7

↓ 602/wk

MIT

JavaScript

Oct 28, 2026

dsh plugin --profile web add dsh-sql

by GHJIVHIDD

Docker 容器沙箱部署级插件(与 dsh-plugin-vm-sandbox 全能力对齐,无需 OrbStack):39 个 docker_* 模型工具、快照/回滚、文件传输、端口转发、后台任务、审计、共享/配额/回收、网络策略与华丽原生 UI。

Manifest valid

★ 3

Apache-2.0

JavaScript

Aug 20, 2026

dsh plugin --profile web add @dsh-community/dsh-plugin-container

by beijingwahw

DeepSeek Companion — DeepSeek Harness 官方伴侣插件:对话导出/交接摘要/成本优化/全局检索 + 执行轨迹分析、Prompt 工程工作台、多模型竞技场、任务编排、安全与审计(E–J 九大模块,Cordis 插件化)。

Tools & CapabilitiesTerminal & ClientsSessions & MessagesModels & ProvidersManifest valid

★ 6

↓ 305/wk

MIT

TypeScript

Sep 19, 2026

dsh plugin --profile web add dsh-companion

by Anionex

为 DeepSeek Harness 提供电脑控制插件:新鲜 Accessibility 观测、过期状态拒绝、作用域权限与安全输入(目前支持macos)|Accessibility-first macOS Computer Use bundle for DSH with fresh observations, stale-state rejection, scoped permissions, a

Tools & CapabilitiesManifest valid

★ 78

MIT

TypeScript

Oct 27, 2026

dsh plugin --profile web add @anionex/dsh-computer-use

by fakechris

DSH 运维工具箱:升级、重启、故障都不用操心。① 官方每日快照 A/B 双槽轮换——旧插件迁移+构建+验收全过才原子切换,一键回滚,旧版本永远兜底;② 守护 10s 自动拉起 web + agent 断点自动续接,重启无人值守;③ web 全挂(A/B 都坏、agent 不可用)时 dsh-doctor 一条命令自救:九项诊断→机械修复配置→LLM 深度检测修复(完整推理实时可见)→拉起 web

Tools & CapabilitiesManifest valid

★ 16

↓ 44/wk

MIT

Python

Sep 18, 2026

dsh plugin --profile agent add @fakechris/dsh-restart-recover

by fb0sh

基于 DeepSeek Harness 的多 Agent PTES 渗透测试编排插件,支持自动化侦察、漏洞分析、验证与报告,使用 Docker/Kali 隔离工具箱 | Multi-agent PTES penetration testing plugin for DeepSeek Harness with automated recon, vulnerability analysis, vali

Security & AuditManifest valid

★ 80

↓ 590/wk

NOASSERTION

TypeScript

Oct 28, 2026

dsh plugin --profile web add dsh-pentester