Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计异常

linux-dockerlinux Docker 部署

Agent Skill

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

总安装

424

周安装

17

GitHub Stars

4

下载量

137
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill linux-docker

简介

用于辅助云资源、部署和容器运维自动化任务。linux-docker 属于开发类 Skill,可作为该场景下的辅助能力补充。

  • 适合检查配置、整理部署步骤、分析资源状态或生成排障思路。
  • 需明确目标环境、账号权限和资源组,区分测试与生产操作。
  • 涉及删除或修改网络配置时,应先确认影响范围和安全边界。
  • 安装前建议核验仓库维护状态及是否触发敏感操作。

SKILL.md

linux-docker

Purpose

This skill allows the AI to handle Docker and Docker Compose operations on Linux, focusing on Dockerfile creation, container management, networking, volumes, lifecycle events, registry interactions, and security hardening to ensure efficient, secure containerized applications.

When to Use

Use this skill for tasks involving containerization of applications, such as building images from source code, deploying multi-service apps with Compose, managing network configurations for inter-container communication, or securing containers against vulnerabilities in a Linux environment.

Key Capabilities

  • Build and manage Docker images using Dockerfiles: Specify base images, add layers with COPY/ADD, set ENTRYPOINT/CMD.
  • Configure networking: Use bridge, host, or overlay networks with flags like --network bridge.
  • Handle volumes: Mount host directories or named volumes with -v /host/path:/container/path.
  • Manage container lifecycle: Start, stop, restart containers using commands that handle signals like SIGTERM.
  • Interact with registries: Push/pull images to/from repositories like Docker Hub, with authentication.
  • Apply security hardening: Use options like --security-opt no-new-privileges to limit capabilities, and scan images with tools like Trivy.

Usage Patterns

To build an image, read a Dockerfile, then execute docker build with appropriate context; for Compose, parse a YAML file and run docker-compose up. Always check for required dependencies like Docker daemon running. For networking, specify networks in Compose YAML under the networks key. Use environment variables for sensitive data, e.g., inject $DOCKER_REGISTRY_URL into container env. For security, always run containers with --read-only flag where possible to prevent writes.

Common Commands/API

  • Build an image: docker build -t myimage:1.0. (use -f path/Dockerfile for custom file).
  • Run a container: docker run -d --name mycontainer -p 8080:80 -v /host/data:/app/data myimage:1.0.
  • Manage networks: docker network create mynet then docker run --network mynet myimage.
  • Use volumes: docker volume create myvolume and mount with -v myvolume:/data.
  • Container lifecycle: docker start mycontainer, docker stop mycontainer, docker rm -f mycontainer.
  • Registry operations: docker login -u user -p $DOCKER_PASSWORD registry.example.com; push with docker push myimage:1.0.
  • Docker Compose: docker-compose -f docker-compose.yml up -d; define services in YAML like: version: '3' services: web: image: nginx ports: - "80:80"
  • API endpoints: Use Docker Engine API, e.g., GET /containers/json to list containers; authenticate with headers including $DOCKER_API_KEY.

Integration Notes

Integrate by ensuring Docker is installed via apt install docker.io on Ubuntu. For registry access, set env vars like export DOCKER_REGISTRY_URL=registry.example.com and export DOCKER_API_KEY=yourkey. When combining with other skills, e.g., in a CI/CD pipeline, use Compose files to orchestrate with tools like Jenkins; reference external configs with ${VAR} in YAML. For security, always pull from trusted registries and use --cap-drop ALL in run commands. If using orchestration tools like Kubernetes, export Compose files with docker-compose config for conversion.

Error Handling

Handle permission errors by prefixing commands with sudo, e.g., sudo docker run...; check with groups to ensure user is in docker group. For image pull failures, verify registry auth with echo $DOCKER_API_KEY and retry docker pull. Network issues: Use docker network inspect mynet to debug; fix with docker network prune. Dockerfile build errors: Parse logs for messages like "no such file or directory" and correct paths. Compose errors: Validate YAML with docker-compose config before running; common fix for "service not found" is checking indentation. Always use docker ps -a to inspect running/faulty containers and docker logs mycontainer for output.

Concrete Usage Examples

  1. Build and run a simple Nginx container: First, create a Dockerfile with FROM nginx:alpine; COPY index.html /usr/share/nginx/html;. Then, build it: docker build -t mynginx.. Run securely: docker run -d --name webserver -p 8080:80 --read-only mynginx. Access at localhost:8080.
  2. Orchestrate a web app with Compose: Create a docker-compose.yml file: version: '3' services: db: image: postgres volumes: - dbdata:/var/lib/postgresql/data web: image: mynginx ports: - "8080:80" volumes: dbdata: Then, start: docker-compose up -d. Scale web service: docker-compose up -d --scale web=3.

Graph Relationships

  • Connected to: linux cluster (parent).
  • Related skills: based on tags ["docker", "containers", "compose", "registry"]; links to skills like container-management or linux-networking for extended operations.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.95%
按下载量换算52

Claude

29.17%
按下载量换算40

Cursor

17.9%
按下载量换算25

Gemini CLI

9.87%
按下载量换算14

安全审计

Gen Agent Trust Hub

可疑

Socket

未通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills