什么是 uncloud?
uncloud is a lightweight clustering and container orchestration tool created by Pasha Sviderski that lets you deploy and manage web apps across cloud VMs and bare metal with minimal cluster management overhead. It bridges the gap between Docker simplicity and Kubernetes power, providing Docker simplicity with multi-machine power.
⚡ Key Features of uncloud
🌐 Multi-Machine Deployment
Deploy across cloud VMs, dedicated servers, and bare metal. Combine different providers into unified computing environment.
🐳 Docker Compose Compatible
Use familiar Docker Compose format for defining services. No need to learn new configuration languages or complex YAML.
🔒 Zero-Config Private Network
Automatic WireGuard mesh with peer discovery and NAT traversal. Containers get unique IPs for direct cross-machine communication.
🎯 No Control Plane
Fully decentralized design eliminates single points of failure. Each machine maintains synchronized cluster state through peer-to-peer communication.
🔍 Service Discovery
Built-in DNS server resolves service names to container IPs. Automatic load balancing and ingress with HTTPS via Caddy.
📦 Persistent Storage
Run stateful services with Docker volumes managed across machines. Data persistence without complex storage orchestration.
apt upgrade 即可始终保持最新版本。
📦 从 deb.griffo.io 安装
步骤 1:添加仓库
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
sudo apt updateinstall -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt updatesudo apt install extrepo
sudo extrepo enable griffo
sudo apt update🆓 有一个永久免费的镜像。 deb-free.griffo.io 永久免费提供软件包 — 无需账号、无需订阅,最多落后上游 2 个月,安全修复立即发布。目前收录 cliamp、Ghostty、lazydocker、Oh My Posh 和 Zed;Uncloud 不在其中,因此今天只能通过上面的仓库安装 — 提出请求即可将其加入。
🧩 关于 extrepo 选项。 extrepo 是 Debian 官方用于管理第三方仓库的工具:它会替你写好 sources 文件并安装签名密钥,并在使用前先对照签名元数据校验该密钥。本仓库以 griffo 之名登记其中,永久免费镜像则为 griffo-free,因此在 Debian(bookworm、trixie、forky、sid)上,上面的命令就是全部配置。
extrepo 只负责 sources 文件和密钥,订阅凭据仍然要写入 /etc/apt/auth.conf.d/deb.griffo.io.conf。Ubuntu 不在覆盖范围内,因为 extrepo 只发布 Debian 各套件的元数据:在 Ubuntu 上请使用 sudo 或 root 的命令。
步骤 2:安装 uncloud
# Install latest uncloud
sudo apt install uncloud
# Verify installation
uc --version# Install latest uncloud
apt install uncloud
# Verify installation
uc --version🎯 基本使用示例
Initialize your first cluster:
# Initialize cluster on first machine
uc machine init root@your-server-ip
# Add more machines to cluster
uc machine add --name server2 root@second-server-ip
# List cluster machines
uc machine lsDeploy applications:
# Deploy from Docker image with HTTPS
uc run -p app.example.com:8000/https image/my-app
# Deploy from Docker Compose file
uc compose up -f compose.yaml
# Scale service across machines
uc scale my-app 3
# List running services
uc lsManage deployments:
# Update service with new image
uc update my-app image/my-app:v2
# View service logs
uc logs my-app
# Remove service
uc rm my-app
# Clean up cluster
uc machine rm server2🚀 为什么选择 deb.griffo.io?
- Official Debian: Not available in official repositories
- Install Script: Manual updates and dependency management
- Manual Binary: No package management or automatic updates
- deb.griffo.io: Latest version with automatic updates
- ✅ Latest Features: Get newest orchestration and networking improvements
- ✅ No Manual Setup: Pre-built binaries with all dependencies
- ✅ Automatic Updates: Packages updated within hours of upstream releases
- ✅ Complete Package: Includes all required components and scripts
- ✅ Multi-Distribution: Works on Bookworm, Trixie, and Sid
- ✅ Easy Maintenance: Standard apt commands for updates
📦 软件包构建仓库
Debian 软件包在此 GitHub 仓库中自动构建和维护:
- 🌬️ uncloud-debian - Latest release builds
🔗 相关软件包
也可从 deb.griffo.io 获取:
- unregistry - Direct Docker image transfer (same author)
- lazydocker - Terminal UI for Docker management
- fzf Fuzzy Finder - Enhanced command searching