A lightweight tool for deploying and managing containerised applications across a network of Docker hosts. Bridging the gap between Docker and Kubernetes ✨
A lightweight tool for deploying and managing containerised applications across a network of Docker hosts. Bridging the gap between Docker and Kubernetes ✨
Uncloud is a lightweight clustering and container orchestration tool that lets you deploy and manage web apps across cloud VMs and bare metal with minimised cluster management overhead. It creates a secure WireGuard mesh network between your Docker hosts and provides automatic service discovery, load balancing, ingress with HTTPS, and simple CLI commands to manage your apps.
Unlike traditional orchestrators, there's no central control plane and quorum to maintain. Each machine maintains a synchronised copy of the cluster state through peer-to-peer communication, keeping cluster operations functional even if some machines go offline.
Uncloud is the solution for developers who want the flexibility of self-hosted infrastructure without the operational complexity of Kubernetes.
*.xxxxxx.uncld.dev for services with public access via managed
Uncloud DNS service.The screenshot below demonstrates how we use Uncloud to deploy https://uncloud.run website to 2 remote machines from
the compose.yaml file on the local machine.
It exposes the container port 8000/tcp as HTTPS on uncloud.run domain, served by the Caddy reverse proxy on the
remote machines. All managed by Uncloud.
Here is a more advanced use case. Deploy a highly available web app with automatic HTTPS across multiple regions and on-premises in just a couple minutes.
** Want more examples?** Check out the uncloud-recipes repository for community recipes and templates for deploying popular services on Uncloud.
Modern cloud platforms like Heroku and Render offer amazing developer experiences but at a premium price. Traditional container orchestrators like Kubernetes provide power and flexibility but require significant operational expertise. I believe there's a sweet spot in between — a pragmatic solution for the majority of us who aren't running at Google scale. You should be able to:
Uncloud's goal is to make deployment and management of containerised applications feel as seamless as using a cloud platform, whether you're running on a $5 VPS, a spare Mac mini, or a rack of bare metal servers.
Install Uncloud CLI:
brew install psviderski/tap/uncloud
# or using curl (macOS/Linux)
curl -fsS https://get.uncloud.run/install.sh | shSee Installation for more options.
There's also a nightly rolling release available if you want to try the latest features and fixes before they're included in an official release.
Initialise your first machine:
uc machine init root@your-server-ipDeploy your app from a Docker image and publish its container port 8000 as HTTPS using app.example.com domain:
uc run -p app.example.com:8000/https image/my-appCreate a DNS A record in your DNS provider (Cloudflare, Namecheap, etc.) that points app.example.com to your
server's IP address. Allow a few minutes for DNS propagation.
That's it! Your app is now running and accessible at https://app.example.com ✨
Clean up when you're done:
uc ls
# Copy the service name from the output and run the rm command:
uc rm my-app-nameIf you want to fully uninstall Uncloud on a machine, run:
uncloud-uninstallView the Documentation for more information.
Check out the design document to understand Uncloud's design philosophy and goals.
Here is a diagram of an Uncloud multi-provider cluster of 3 machines:
Peek under the hood to see what happens when you run certain commands.When you initialise a new cluster on a machine:
…uncloudd machine daemon, managed by systemd.10.210.0.0/24 for the machine and its
containers, and configures uncloudd accordingly. All subsequent communication happens with uncloudd
through its gRPC API over SSH.uncloudd.~/.config/uncloud/config.yaml on your local machine.When you add another machine:
…sudo access.10.210.1.0/24 for the second machine and its containers.uncloud-corrosion container on the second machine to sync the cluster state.uc to connect and run cluster
operations.If one more machine is added, the process repeats with a new subnet. The new machine needs to establish a WireGuard connection with only one of the existing machines. Other machines will learn about it through the shared cluster state and automatically establish a WireGuard tunnel with it.
When you run a service:
$ uc run -p app.example.com:8000/https image/my-app
[+] Running service my-app-1b3b (replicated mode) 1/1
✔ Container my-app-1b3b-tcex on oracle-vm Started
my-app-1b3b endpoints:
• https://app.example.com → :8000
• https://my-app-1b3b.xuw3xd.cluster.uncloud.run → :8000uncloudd that the CLI communicates with uses grpc-proxy to forward
the request to the target machine to launch a container there.uncloudd on the target machine starts the Docker container in the bridge network and stores its info in the
cluster's distributed state.10.210.X.2-254 range) and becomes
accessible from other machines in the cluster.global
mode on each machine watches the cluster state for new services and updates its configuration to route traffic to the
new container.Look ma, no control plane or master nodes to maintain! Just a simple overlay network and eventually consistent state sync that lets machines work together. Want to check on things or make changes? Connect to any machine either implicitly using the CLI or directly over SSH. They all have the complete cluster state and can control everything. It's like each machine is a full backup of your control plane.
To give you a chance to play with Uncloud without even leaving your browser, we're providing interactive tutorials and playgrounds on the iximiuz Labs platform.
Available tutorials:
You can also launch the Uncloud playground where you can play with an already initialized Uncloud cluster.
Uncloud is under active development and pre-1.0, so expect occasional breaking changes between releases. The core build, push, and deploy workflows are stable, and much of the runtime relies on battle-tested projects: Docker, Caddy, WireGuard, and Corrosion.
We'd love your input! Here's how you can contribute:
I'm grateful to the following projects that inspired Uncloud's design and implementation:
No open issues yet, or sync has not completed.