v0.17.0
This page mirrors the GitHub release, which also includes the full list of commits.
This release brings container health monitoring with automatic rollback during rolling deployments, Compose spec support for healthcheck, devices, and ulimits, and various reliability improvements.
✨ Highlights
Container health monitoring and rollback
Changes: 7a9eac5, 7b88040, ce3cb8a
Rolling deployments now monitor crashes and health checks after starting new containers. If a container keeps restarting or becomes unhealthy, the deployment automatically rolls it back and fails to prevent downtime.
https://github.com/user-attachments/assets/4ee73048-9ca2-4c8a-b075-f8c6a0840ee7
Compose healthcheck support
Compose files now support the healthcheck attribute, allowing you to define health checks for your services:
services:
app:
image: myapp
healthcheck:
test: curl -f http://localhost:8000/health
interval: 5s
retries: 3
start_period: 10s
start_interval: 1s
Use uc deploy --skip-health flag to bypass health monitoring for faster emergency deployments.
See Rolling deployments for more details on how rolling deployments work and how to configure health checks for your services.
Control container replacement order during rolling deployments
PR: #248. Thanks to @nick-potts for the contribution ❤️
You can now control the order of container replacement during rolling deployments with deploy.update_config.order in your Compose file:
start-first(default): starts a new container before stopping the old onestop-first: stops the old container before starting a new one (brief downtime)
services:
app:
image: myapp
deploy:
update_config:
order: stop-first
The default order automatically switches to stop-first if a service mounts a volume to prevent data corruption.
See Rolling deployments for more details.
Compose devices support
PR: #250. Thanks to @jabr for the contribution ❤️
You can now map host devices into containers, for example, Intel integrated GPU for video transcoding using the devices attribute in your Compose file:
services:
app:
image: myapp
devices:
- /dev/dri:/dev/dri
- /dev/ttyUSB0:/dev/ttyUSB0:rw
Compose ulimits support
PR: #244. Thanks to @ipaddicting for the contribution ❤️
You can now set ulimits for service containers in your Compose file. For example, to increase the maximum number of open files:
services:
app:
image: myapp
ulimits:
nofile:
soft: 65536
hard: 65536
Auto-provision volumes for global services
PR: #243. Thanks to @zasdaym for the contribution ❤️
When deploying a global service with a volume, the volume is now automatically created on all machines in the cluster.
Improvements
- SSH connections with
ssh+cli://prefix (usesshCLI instead of Go native SSH implementation) reuse a single SSH connection via control socket - significantly speeds upuccommands - Improved
uc image pushsupport on macOS by always running proxy to virtualised Docker (except OrbStack that doesn't require it) - Global service deployment stops all running conflicting containers, e.g. left from interrupted deploys, not just the first one
- Temporary socat proxy containers created by
uc image pushare labeled withuncloud.managed
Bug fixes
- Fixed IPv6 address formatting for HTTP URLs (#254)
- Fixed
uc image pushwhen using Rancher Desktop locally (#251) - Fixed
uc machine initto reset an already initialised machine when usingssh+cli://connection
Upgrade to 0.17.0
Uncloud CLI locally
To upgrade the Uncloud CLI (uc) locally:
# Homebrew (macOS, Linux)
brew upgrade uncloud
# Install script (macOS, Linux)
curl -fsS https://get.uncloud.run/install.sh | sh
Machine daemon
To upgrade the Uncloud daemon on your machines, run the following commands on each machine:
# AMD64
curl -fsSL -o uncloudd.tar.gz https://github.com/psviderski/uncloud/releases/download/v0.17.0/uncloudd_linux_amd64.tar.gz
# ARM64
# curl -fsSL -o uncloudd.tar.gz https://github.com/psviderski/uncloud/releases/download/v0.17.0/uncloudd_linux_arm64.tar.gz
tar -xf uncloudd.tar.gz
sudo install uncloudd /usr/local/bin/uncloudd
rm uncloudd uncloudd.tar.gz
sudo systemctl restart uncloud