Token导航 LogoToken导航TokenDH.com
运维执行命令clawhub未标认证来源可访问clear审计通过

docker-cliDocker CLI 部署

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

10,278

周安装

424

GitHub Stars

公开资料未说明

下载量

3,358
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:docker-cli(Docker CLI 部署)
来源仓库:https://github.com/openlang-cn/docker-cli
安装命令:
openclaw skills install docker-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install docker-cli

简介

辅助执行 Docker CLI 命令,涵盖构建、运行和管理操作。

  • 适合日常容器运维和调试,提供命令建议和错误处理。
  • 在 OpenClaw 中通过 clawhub 安装后调用相关功能。
  • 所有操作均在本地执行,需确保用户有 docker 权限。
  • docker-cli 属于运维类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
docker-cli
description
Helper for using the Docker CLI to build, run, stop, inspect, and manage containers and images. Use when the user wants to perform container-related tasks from the command line, such as building images, running services, cleaning up resources, or checking logs.

Docker CLI Helper

This skill explains how to use the Docker command line for common container workflows.

When to Use

Use this skill when:

  • The user wants to build or rebuild a Docker image.
  • The user wants to run a container (one-off or long-running).
  • The user wants to see which containers/images/volumes exist.
  • The user wants to stop or remove containers/images.
  • The user wants to see logs, exec into a container, or check resource usage.

Requirements

  • Docker is installed and running.
  • docker version or docker info works in the user’s shell.

If unsure, suggest the user run:

docker version

to confirm Docker is available.

Safety Guidelines

  • Prefer read-only or non-destructive commands first:

- docker ps, docker ps -a - docker images - docker logs - docker inspect

  • Be cautious with destructive commands:

- docker rm, docker rmi - docker system prune - docker volume rm

  • Only recommend destructive cleanups when the user explicitly wants to free resources and understands what will be removed.

Common Workflows

1. List and inspect containers

List running containers:

docker ps

List all containers (including stopped):

docker ps -a

Inspect a container in detail:

docker inspect <container-id-or-name>

2. List and inspect images

List local images:

docker images

Inspect an image:

docker inspect <image-id-or-name>

3. Build images

Build an image from a Dockerfile in the current directory:

docker build -t <image-name>:<tag> .

Example:

docker build -t my-app:latest .

If the Dockerfile is in another directory:

docker build -t my-app:latest path/to/context

4. Run containers

Run a container in the foreground:

docker run --rm -it <image-name>:<tag>

Run in detached mode (background service):

docker run -d --name <container-name> <image-name>:<tag>

Map ports from container to host:

docker run -d --name <container-name> -p 8080:80 <image-name>:<tag>

Mount a host directory into the container:

docker run -d --name <container-name> -v /host/path:/container/path <image-name>:<tag>

5. Stop and remove containers

Stop a running container:

docker stop <container-id-or-name>

Remove a stopped container:

docker rm <container-id-or-name>

Stop and remove in one shot (two commands):

docker stop <container-id-or-name>
docker rm <container-id-or-name>

6. Remove images

Remove an image by ID or name:

docker rmi <image-id-or-name>

Only suggest this when the user is sure the image is no longer needed.

7. Logs and exec

See logs for a container:

docker logs <container-id-or-name>

Stream logs (follow):

docker logs -f <container-id-or-name>

Execute a shell inside a running container (if it has /bin/bash):

docker exec -it <container-id-or-name> /bin/bash

or with /bin/sh:

docker exec -it <container-id-or-name> /bin/sh

8. Clean up resources

Only suggest these when the user explicitly wants cleanup:

  • Remove all stopped containers:
docker container prune
  • Remove unused images:
docker image prune
  • Remove everything unused (containers, networks, images, and optionally volumes):
docker system prune

For a more aggressive cleanup, but only if the user confirms:

docker system prune -a

Troubleshooting Tips

  • If images cannot be pulled, check:

- Network connectivity. - Registry authentication (if using a private registry).

  • If ports are already in use, suggest:

- Changing the host port in -p host:container. - Or stopping the process that currently uses the port.

  • If a container keeps exiting immediately:

- Suggest checking docker logs <container> for errors. - Inspect entrypoint and command configuration.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

92.64%
按下载量换算3,111

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install docker-cli 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills