Community程式設計與開發github.com

ComposioHQ/Docker-Hub-Automation-ker-hub-automation

自動化 Docker Hub 操作 — 透過 Composio MCP 整合管理組織、儲存庫、團隊、成員與 Webhook。

Docker-Hub-Automation-ker-hub-automation 是什麼?

此技能讓 AI 代理(如 Claude Code、Cursor 或 Codex)能自動化 Docker Hub 的工作流程。它透過 Composio MCP 伺服器整合,提供一系列預先定義的工具來管理組織與儲存庫、邀請團隊成員、設定映像推送的 Webhook,並列出容器映像。開發者可以透過程式化方式執行組織建立、儲存庫建立(支援公開與私有權限)、以分頁方式清單化管理等操作,無需手動操作 Docker Hub 網頁介面。該技能支援所有相容 MCP 的用戶端,並以 JWT 或 API Token 進行驗證。其 SKILL.md 文件記錄了八個核心工作流程,包含工具說明、輸入參數及已知的陷阱(如私有儲存庫的方案限制或 Webhook 的兩步驟設定流程),幫助使用者避免常見錯誤並提升生產力。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/docker-hub-automation

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Docker Hub 自動化

自動化您的 Docker Hub 工作流程 — 建立與管理組織、儲存庫、團隊、新增成員、設定映像推送 Webhook,以及列出容器映像。

工具包文件: composio.dev/toolkits/docker_hub


設定

  1. 將 Composio MCP 伺服器新增至您的用戶端:https://rube.app/mcp
  2. 依提示連接您的 Docker Hub 帳戶(JWT/Token 驗證)
  3. 開始使用下方的工作流程

核心工作流程

1. 列出組織

使用 DOCKER_HUB_LIST_ORGANIZATIONS 來發現已驗證使用者所屬的組織。

工具:DOCKER_HUB_LIST_ORGANIZATIONS
輸入:
  - page:整數(從 1 開始,預設 1)
  - page_size:整數(1-100,預設 25)

2. 建立組織

使用 DOCKER_HUB_CREATE_ORGANIZATION 以程式化方式建立新的 Docker Hub 組織。

工具:DOCKER_HUB_CREATE_ORGANIZATION
輸入:
  - orgname:字串(必填)— 小寫,僅限字母/數字/._-,最少 2 個字元
  - company:字串(選填)— 與組織關聯的公司名稱

注意: 需要透過 /v2/users/login 取得的 JWT 驗證,且可能具有存取限制。

3. 取得組織詳細資訊與儲存庫

使用 DOCKER_HUB_GET_ORGANIZATION 來擷取名稱空間資訊及其儲存庫。適用於任何公開名稱空間。

工具:DOCKER_HUB_GET_ORGANIZATION
輸入:
  - organization:字串(必填)— 例如 "docker"、"bitnami"、"library"

4. 建立儲存庫

使用 DOCKER_HUB_CREATE_REPOSITORY 在名稱空間下建立公開或私有儲存庫。

工具:DOCKER_HUB_CREATE_REPOSITORY
輸入:
  - namespace:字串(必填)— Docker Hub 使用者名稱或組織名稱
  - name:字串(必填)— 小寫;允許字母、數字、._-
  - description:字串(選填)— 最多 100 個字元
  - full_description:字串(選填)— Markdown README 內容
  - is_private:布林值(預設 false)— 私有儲存庫需要付費方案

5. 列出儲存庫並篩選

使用 DOCKER_HUB_LIST_REPOSITORIES 來列舉名稱空間內的儲存庫,並提供排序與內容類型篩選。

工具:DOCKER_HUB_LIST_REPOSITORIES
輸入:
  - namespace:字串(必填)— 例如 "library"、"myorg"
  - ordering:"name" | "last_updated" | "pull_count"(前綴 - 表示降冪)
  - page:整數(預設 1)
  - page_size:整數(1-100,預設 25)
  - content_types:字串(逗號分隔,例如 "image,artifact")

6. 管理團隊、成員與 Webhook

使用 DOCKER_HUB_LIST_TEAMS 列出組織內的團隊、DOCKER_HUB_ADD_ORG_MEMBER 邀請使用者,以及 DOCKER_HUB_CREATE_WEBHOOK 設定推送通知。

工具:DOCKER_HUB_LIST_TEAMS
  - 列出 Docker Hub 組織內的所有團隊/群組

工具:DOCKER_HUB_ADD_ORG_MEMBER
  - 透過 Docker ID 或電子郵件邀請使用者加入組織
  - 需要擁有者或管理員權限

工具:DOCKER_HUB_CREATE_WEBHOOK
  - 在儲存庫上建立映像推送通知的 Webhook
  - 兩步驟流程:先建立 Webhook,再新增 Hook URL
  - 需要儲存庫的管理員權限

已知陷阱

陷阱詳細說明
JWT 驗證DOCKER_HUB_CREATE_ORGANIZATION 需要來自 /v2/users/login 的 JWT 驗證 — 標準 API Token 可能不足。
私有儲存庫限制建立私有儲存庫(is_private: true)需要付費的 Docker Hub 方案。
組織名稱限制組織名稱必須是小寫,至少 2 個字元,僅包含字母、數字、.、_ 或 -。
Webhook 兩步驟DOCKER_HUB_CREATE_WEBHOOK 是兩步驟流程:先用名稱建立 Webhook,然後再新增一個 Hook URL。
分頁所有列出端點都使用基於頁碼的分頁 — 請迭代頁面直到結果耗盡。

快速參考

工具代號說明
DOCKER_HUB_LIST_ORGANIZATIONS列出使用者所屬的組織
DOCKER_HUB_CREATE_ORGANIZATION建立新的 Docker Hub 組織
DOCKER_HUB_GET_ORGANIZATION取得組織詳細資訊與儲存庫列表
DOCKER_HUB_CREATE_REPOSITORY在名稱空間下建立儲存庫
DOCKER_HUB_LIST_REPOSITORIES列出儲存庫並提供篩選與排序
DOCKER_HUB_LIST_TEAMS列出組織內的團隊/群組
DOCKER_HUB_ADD_ORG_MEMBER邀請使用者加入組織
DOCKER_HUB_CREATE_WEBHOOK在儲存庫上建立推送通知 Webhook

由 Composio 提供技術支援

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相關技能