Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)280k · #429

uncloud

Skill này làm gì

Công cụ này giúp bạn quản lý một nhóm máy tính (cụm Uncloud) cùng hoạt động. Bạn có thể dùng nó để cài phần mềm mới, thiết lập cách các máy kết nối internet, xem điều gì đang diễn ra bên trong chúng, và thêm hoặc bớt máy trong nhóm.

Khi nào nên dùng

  • ✓Khi bạn đang thiết lập một cụm Uncloud mới.
  • ✓Khi bạn muốn cài hoặc cập nhật một phần mềm trên cụm.
  • ✓Khi bạn cần xem nhật ký của một chương trình hoặc trạng thái của một máy.

Liên kết skill

https://github.com/affaan-m/ECC/blob/main/skills/uncloud/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/affaan-m/ECC/blob/main/skills/uncloud/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để cài một chương trình mới tên “my-app” trên cụm Uncloud của tôi?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Uncloud dùng container (các chương trình đóng gói) chạy trên các máy khác nhau. Nó tạo một mạng riêng giữa các máy và dùng chương trình Caddy để quản lý truy cập internet, đảm bảo mọi thứ hoạt động ăn khớp.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Uncloud Cluster Management

Reference for the uc CLI — a decentralised self-hosting platform using Docker containers, WireGuard mesh networking, and Caddy reverse proxy.

When to Activate

Use this skill when working with Uncloud clusters, especially when:

  • Bootstrapping or joining machines with uc machine
  • Deploying services from Compose files with uc deploy
  • Publishing HTTP, HTTPS, TCP, or UDP ports through Uncloud
  • Configuring Caddy ingress with x-caddy, x-ports, or --caddyfile
  • Routing external LAN devices through the cluster proxy
  • Inspecting logs, service state, volumes, DNS, or machine placement

How It Works

Uncloud runs Docker services across peer machines connected by a WireGuard mesh. Each machine is an equal cluster member; services communicate on the overlay network and Caddy runs globally to terminate public HTTP/HTTPS traffic. Compose files can use Uncloud extensions for ingress, placement, and generated Caddy configuration, while the uc CLI handles image distribution, scheduling, scaling, logs, and cluster state.

Examples

uc machine init user@host --name machine-1
uc service run --name web -p app.example.com:8080/https nginx:latest
uc deploy

Core Concepts

  • No central control plane — all machines are equal peers connected by WireGuard
  • Caddy runs as a global service on every machine; auto-obtains TLS from Let's Encrypt
  • Overlay network — services communicate via 10.210.0.0/16 by default; DNS provided inside the mesh
  • Caddyfile is autogenerated — never edit it directly; use x-caddy / --caddyfile instead

CLI Quick Reference

Machines

Command Purpose
uc machine init user@host Bootstrap first machine / new cluster
uc machine add user@host Join machine to existing cluster
uc machine ls List machines
uc machine update NAME --public-ip IP Update public IP for ingress
uc machine rm NAME Remove machine

Key init flags: --name, --network 10.210.0.0/16, --no-caddy, --no-dns, --public-ip auto\|IP\|none

Services

Command Purpose
uc service ls / uc ls List services
uc service run IMAGE Run a single container service
uc deploy Deploy from compose.yaml
uc deploy --no-build Deploy already-pushed images without rebuilding
uc deploy --recreate Force service recreation
uc scale SERVICE N Set replica count
uc service logs SERVICE View logs
uc service exec SERVICE Shell into container
uc service inspect SERVICE Detailed info
uc service rm SERVICE Remove service (keeps named volumes)
uc ps All containers across cluster

Images

uc image push myapp:latest                    # Push local image to all machines
uc image push myapp:latest -m machine1,machine2  # Push to specific machines
uc images                                     # List images in cluster

Volumes

uc volume ls                  # All volumes
uc volume ls -m machine1      # On specific machine
uc volume create NAME -m MACHINE
uc volume rm NAME

Caddy

uc caddy config    # Show current generated Caddyfile (read-only)
uc caddy deploy    # Deploy/upgrade Caddy across cluster

DNS & Context

uc dns show        # Show reserved *.uncld.dev domain
uc dns reserve     # Reserve a new domain
uc ctx ls          # List cluster contexts
uc ctx use prod    # Switch context

Port Publishing

HTTP/HTTPS (via Caddy reverse proxy)

-p [hostname:]container_port[/protocol]
Example Meaning
-p 8080/https HTTPS with auto service-name.cluster-domain hostname
-p app.example.com:8080/https HTTPS with custom hostname
-p 8080/http HTTP only, no TLS

TCP/UDP (host-bound, bypasses Caddy)

-p [host_ip:]host_port:container_port[/protocol]@host
Example Meaning
-p 5432:5432@host TCP 5432 on all interfaces
-p 127.0.0.1:5432:5432@host TCP 5432 loopback only
-p 53:5353/udp@host UDP

Compose File Extensions

Uncloud adds these extensions on top of Docker Compose:

x-ports — publish ports with domains

services:
  app:
    image: app:latest
    x-ports:
      - example.com:8000/https
      - www.example.com:8000/https
      - api.example.com:9000/https

…

Câu hỏi thường gặp

Cụm Uncloud là gì?

Đó là một nhóm máy tính cùng hoạt động, được Uncloud quản lý để chạy ứng dụng của bạn theo cách phi tập trung và an toàn.

Caddy là gì?

Đây là chương trình quản lý quyền truy cập internet vào dịch vụ của bạn, tự động xử lý các việc như chứng chỉ bảo mật (HTTPS).

Uncloud kết nối các máy bằng cách nào?

Nó dùng công nghệ WireGuard để tạo một mạng riêng, an toàn giữa tất cả các máy trong cụm.

Chi tiết

Mô tả gốc của tác giả

Use when managing an Uncloud cluster — deploying services, configuring Caddy ingress, adding static proxy routes for non-cluster devices, publishing ports, scaling, inspecting logs, or managing machines and volumes with the `uc` CLI.

repo: affaan-m/ECC

Độ phổ biến

Sao GitHub
280k
Vị trí xếp hạng
#429
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự