Run Docker images as microVMs on nibrun
How nibrunner turns a Docker image into a filesystem for Firecracker, with Uptime Kuma as a working example.
View markdownYou can now deploy a public Linux amd64 Docker image to nibrun. We added Uptime Kuma to the catalog this way. Its maintainers already ship Node, the server code and its dependencies in one image. We use that image as published and run the server in its own Firecracker microVM.

What nibrunner does with the image
A Docker image describes a filesystem as a series of changes. One layer might install a package and the next might delete one of its files. That second layer contains a deletion marker, called a whiteout, telling the unpacker which file to remove.
nibrunner, the engine behind nibrun, does that work on the host. It pulls the image by digest, selects the Linux amd64 manifest if the digest points to a multi-platform index, and verifies the layers it downloads. It flattens those layers into a single ext4 filesystem and caches it by digest. Two apps using the same image on the same host can reuse that filesystem. nibrunner's layer documentation
Firecracker boots a guest kernel for each app. Inside the VM, the guest mounts the prepared filesystem read-only above its Debian base, with the app's writable volume on top. The guest then starts the program you configured. Docker itself plays no part in booting the VM or running the process.
Deploy your own Docker image
If you're starting from a Dockerfile, build for linux/amd64 and push to a public
repository you control. Replace your-account/my-app with your Docker Hub repository
and run this from the directory containing your Dockerfile.
image=docker.io/your-account/my-app
docker buildx build --platform linux/amd64 --tag "$image:v1" --push .
docker buildx imagetools inspect "$image:v1"
If the image is already public, just run the inspect command against its tag. Copy the
top-level Digest from the output, including the sha256: prefix.
- Open the deploy form and choose Container image.
In Image reference, enter the repository followed by
@and the digest you copied, for exampledocker.io/your-account/my-app@sha256:…. - Set Program to the absolute path of the executable or entrypoint script. Put its
arguments under Arguments, one per line. Set Working directory to the directory
the program expects. These fields take the place of the image's
ENTRYPOINT,CMDandWORKDIR. - Set HTTP port to the port your server listens on and add any Environment variables
it needs. The server must listen on
0.0.0.0, and its data directory must be writable by UID 65534. Click Deploy, then open the app's HTTPS URL.
Starting Uptime Kuma
Our Uptime Kuma preset uses the upstream slim rootless image and runs this command from /app.
/usr/local/bin/node server/server.js
The preset tells Kuma to listen on 0.0.0.0:3001 and points DATA_DIR at the persistent
volume. Choose SQLite on first launch and Kuma stores your monitors and their history there.
That database survives an image update. For continuous monitoring, enable Always on so
Kuma keeps checking your sites between visits.