Apps
An app runs a Docker image (Jellyfin, Home Assistant, Vaultwarden, Uptime Kuma, ...) as a container of its own, without Docker: Incus pulls the image from its registry and runs it directly. Like any container it is protected, replicated, failed over, moved and backed up, and it gets its own address on your network from DHCP, so there are no ports to map: open http://<its address>:<port>.
Apps live on the Virtual machines page, marked App.
Create an app
- On Virtual machines, click New app.
- Under Image, type the image as you would for
docker pull:jellyfin/jellyfin,vaultwarden/server:latest,ghcr.io/home-assistant/home-assistant:stable,lscr.io/linuxserver/sonarr. Without a registry it comes from Docker Hub; without a tag,latest. Click Look up: staxmax asks the registry for it and shows the version it found, and the port the app listens on. - Name is filled in from the image; change it if you like.
- Data disks: staxmax adds one for every folder the image says it keeps data in (Jellyfin:
/configand/cache). Add one for each other folder the app writes data to that you want to keep, as its documentation lists them for Docker volumes (often/configor/data). See why this matters. - Environment: one
NAME=valueper line, as indocker run -eor theenvironment:of a compose file (TZ=Europe/Paris,PUID=1000). - Set the CPU limit, Memory limit and Image disk, and tick Use the node's GPU for hardware video (see Containers).
- Click Create app. It starts as soon as the image is downloaded.
What the app prints is on the Boot log tab of its Console; the Root shell tab works when the image has a shell.
A folder of a NAS share (a media library) is added under ⋯ → Edit → Shared folders; see Shared folders.
Updates
staxmax asks the registry once a day whether the app's tag (latest, stable, ...) points at a newer image, and marks the app Update available when it does. ⋯ → Update image (or a click on Update available) stops the app, replaces its image with the newest one, and starts it again.
An update keeps the app's data disks, shared folders, environment and settings. Everything else in it, such as files it wrote outside its data disks, is replaced with the new image, as when you pull a new image in Docker and recreate the container. Its snapshots are deleted, and a protected app's copy on another node is replaced with a full new copy.
Change an app
⋯ → Edit changes its resources, data disks, shared folders and Environment. The app sees environment changes from its next start: restart it after saving.
Limits
- An app runs its image as it is: no cloud-init, fixed address or ISO. If it needs a fixed address, reserve one for its MAC address in your router.
- Reinstall and Save as image do not apply to apps: Update image gives an app a fresh copy of its image.
- Data disks are not part of snapshots (see Data disks).
- Apps need every node online and on a version that runs them.