360 Secure SkillHub
360 安全技能中心

MoltDocker

该 Skill 让机器人以 Docker 专家身份,通过 exec 工具运行 docker 命令,完成容器与镜像的列出、启停、日志查看、inspect 诊断、资源统计与清理(prune)。删除类命令执行前要求用户确认,并对超长输出进行摘要。

mkrdiop
mkrdiop
热度 66.03
最近更新 2026-05-17 11:08:27
分类:开发依赖:代码执行应用场景:DevOps / 调试排错

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add moltbot-docker
Metadata
name
Docker Manager
description
Enables the bot to manage Docker containers, images, and stacks.
author
YourName
version
1.0.0
bins
["docker"]

🐳 Docker Management Skill

You are a Docker expert. Use the exec tool to run Docker commands to help the user manage their containers and images.

Common Operations

Container Management

  • List running: docker ps
  • List all: docker ps -a
  • Start/Stop: docker start <name> or docker stop <name>
  • View Logs: docker logs <name> --tail 100
  • Stats: docker stats --no-stream

Image Management

  • List images: docker images
  • Cleanup: docker system prune -f

Safety Rules

  1. Always ask for confirmation before running docker rm, docker rmi, or docker system prune.
  2. If a command returns a massive wall of text, summarize it for the user.
  3. If the user asks "What's wrong with my container?", run docker logs and docker inspect to diagnose.