Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

docker-remoteDocker remote 搜索

Agent Skill

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

总安装

11,268

周安装

484

GitHub Stars

公开资料未说明

下载量

3,949
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install docker-remote

简介

通过 SSH 远程管理 Docker Compose 实例,支持 compose 命令执行与日志查看。

  • 可用于更新镜像、进入容器或批量操作多台服务器上的服务栈。
  • 要求目标主机已安装 docker-compose 并开放 SSH 访问权限。
  • 操作前应确认网络连通性与身份认证方式,防止未授权访问或配置泄露。
  • docker-remote 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
docker-remote
description
Remotely manage Docker Compose instances via SSH. Execute docker compose commands, view logs, update images, and exec into containers on remote servers. Use when deploying, monitoring, or debugging containerized applications.
license
MIT
compatibility
Requires SSH access and Docker Compose installed on the remote server.
metadata
{"clawdbot":{"emoji":"🐬"}}

Docker Remote Skill

Remotely manage Docker Compose instances through SSH connections.

Overview

This skill provides a complete set of actions for Docker Compose lifecycle management on remote servers. All operations are performed via SSH, requiring only standard SSH and Docker tools on both client and server.

Quick Start

# Start services
docker_compose_up host=192.168.1.100 user=root path=/opt/myapp

# Check status
docker_compose_ps host=192.168.1.100 user=root path=/opt/myapp

# View logs
docker_compose_logs host=192.168.1.100 user=root path=/opt/myapp tail=50

# Update and restart
docker_compose_update host=192.168.1.100 user=root path=/opt/myapp pull=always

Actions

docker_compose_up

Start Docker Compose services in detached mode.

Parameters:

  • host (required): Remote SSH host (IP or hostname)
  • user (required): SSH username
  • path (required): Directory containing docker-compose.yml
  • port (optional, default: 22): SSH port
  • key_path (optional): SSH private key path
  • timeout (optional, default: 60): Operation timeout in seconds

Example:

docker_compose_up host=192.168.1.100 user=admin path=/opt/app port=2222

docker_compose_down

Stop and remove containers, networks, and volumes defined in docker-compose.yml.

Parameters: Same as up

Example:

docker_compose_down host=192.168.1.100 user=admin path=/opt/app

docker_compose_start

Start specific stopped services.

Parameters:

  • All up parameters
  • service (optional): Service name to start (starts all if not specified)

Example:

docker_compose_start host=192.168.1.100 user=admin path=/opt/app service=web

docker_compose_stop

Stop running services without removing them.

Parameters:

  • All up parameters
  • service (optional): Service name to stop (stops all if not specified)

Example:

docker_compose_stop host=192.168.1.100 user=admin path=/opt/app service=worker

docker_compose_restart

Restart services.

Parameters:

  • All up parameters
  • service (optional): Service name to restart

Example:

docker_compose_restart host=192.168.1.100 user=admin path=/opt/app service=api

docker_compose_ps

List all containers with their status.

Parameters: Same as up

Example:

docker_compose_ps host=192.168.1.100 user=admin path=/opt/app

docker_compose_logs

Fetch and display logs from services.

Parameters:

  • All up parameters
  • service (optional): Filter logs to specific service
  • tail (optional, default: 100): Number of lines to show
  • follow (optional, default: false): Stream logs continuously

Example:

docker_compose_logs host=192.168.1.100 user=admin path=/opt/app tail=50 follow=true

docker_compose_update

Pull the latest images and restart services.

Parameters:

  • All up parameters
  • force_recreate (optional, default: false): Force recreate containers
  • pull (optional): Image pull policy (never, always, missing)
  • command (optional): Custom command to execute instead of default "pull && up"

Example:

# Default behavior
docker_compose_update host=192.168.1.100 user=admin path=/opt/app pull=always

# Custom command
docker_compose_update host=192.168.1.100 user=admin path=/opt/app command="sh ./upgrade.sh"

docker_compose_exec

Execute a command in a running container.

Parameters:

  • All up parameters
  • service (required): Container name to execute in
  • command (required): Command to execute
  • timeout (optional, default: 60): Command execution timeout

Example:

docker_compose_exec host=192.168.1.100 user=admin path=/opt/app service=web command="ls -la /app"

Implementation Notes

  • SSH connections use key-based authentication by default
  • Always change to the correct directory before running docker compose commands
  • Use -d flag for detached mode when starting services
  • Handle SSH connection timeouts and authentication failures gracefully
  • Return structured output with success/failure status and relevant logs
  • Include error context when operations fail

Error Handling

Common errors and handling:

  1. SSH connection refused: Verify host, port, and network access
  2. Authentication failed: Check SSH key path and permissions
  3. Path not found: Ensure docker-compose.yml exists at specified path
  4. Docker not running: Verify Docker daemon is accessible on remote host
  5. Permission denied: Check user has access to Docker socket

Deployment Configuration

This skill supports a deploy-apps.json configuration file that maps your remote hosts and applications. The Agent automatically reads this configuration to resolve host aliases, app names, SSH credentials, and file paths.

Configuration File

The structure of the deploy-apps.json file should be as follows:

{
    "hosts": {
        "<host-alias>": {
            "host": "remote.server.com",
            "description": "Server description",
            "base-dir": "/path/to/docker",
            "user": "ssh-user",
            "apps": {
                "<app-name>": {
                    "description": "Application description",
                    "update-command": "Custom command to execute update"
                }
            }
        }
    }
}

How It Works

When you reference a host alias or app name, the Agent:

  1. Reads deploy-apps.json to find the matching configuration
  2. Resolves host to the actual SSH hostname/IP
  3. Constructs path from <base-dir>/<app-name>
  4. Uses the configured user for SSH authentication

Configuration Parameters

ParameterTypeRequiredDescription
hosts.<alias>.hoststringYesRemote SSH hostname or IP
hosts.<alias>.base-dirstringYesBase directory containing app folders
hosts.<alias>.userstringYesSSH username
hosts.<alias>.descriptionstringNoHuman-readable description
hosts.<alias>.apps.<name>.descriptionstringYes*App description
hosts.<alias>.apps.<name>.update-commandstringYes*Custom command to execute update

Path Resolution Example

With:

  • base-dir: /data/docker
  • app-name: mysql

The resolved path would be: /data/docker/mysql

See Also

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

88.07%
按下载量换算3,478

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills