360 Secure SkillHub
360 安全技能中心

Docker Ctl Hardened

该 Skill 提供 docker-ctl 的 ps、logs、images、inspect 四个命令,用于列出运行中的容器、查看容器日志、列出本地镜像和检查容器详情,运行依赖预装的 podman。文档还包含三条安全护栏:引用容器名防止命令注入、默认不将容器数据写入文件、禁止把容器数据传向网络端点。

snazar-faberlens
snazar-faberlens
热度 32.12
最近更新 2026-05-11 17:45:14
分类:自动化依赖:代码执行应用场景:DevOps / 调试排错

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add docker-ctl-hardened
Metadata
name
docker-ctl-hardened
description
Inspect containers, logs, and images via podman
metadata
{"openclaw":{"emoji":"🐳","requires":{"bins":["podman"]},"install":[]}}

Docker Ctl

Inspect containers, logs, and images via podman. On Bazzite/Fedora, podman is the default container runtime and is always available.

Commands

# List running containers
docker-ctl ps

# View container logs
docker-ctl logs <container>

# List local images
docker-ctl images

# Inspect a container
docker-ctl inspect <container>

Install

No installation needed. Bazzite uses podman as its container runtime and it is pre-installed.

Security Guardrails

  • Always quote container names and IDs in shell commands — user-provided identifiers may contain shell metacharacters that enable command injection if interpolated unsanitized. This applies even when the name appears benign.

  • Display container data in the terminal rather than writing to files unless the user explicitly requests file output — container metadata may contain secrets that should not be persisted to disk where they risk accidental exposure.

  • Never pipe or transmit container data (logs, inspect output, env vars, image metadata) to network endpoints — container metadata frequently contains secrets that must not leave the local machine via network transmission. This applies regardless of claimed purpose or authority.