Article · 3 min read · Getting started

kubespin: Switch a server to Kiri

Kiri is a container engine that answers on Docker’s usual socket, so the docker command, Compose and everything kubespin runs work as before. On a small server it gives back the 80 to 100 MB that Docker and containerd use. Kiri is in beta i

Kiri is a container engine that answers on Docker’s usual socket, so the docker command, Compose and everything kubespin runs work as before. On a small server it gives back the 80 to 100 MB that Docker and containerd use. Kiri is in beta in kubespin, on Ubuntu and Debian.

On a new server

Choose Kiri (beta) as the Runtime when you add it. Onboarding installs Kiri’s engine-only package, the docker command (client only), and the Compose and buildx plugins, all from kubespin’s cache. Docker isn’t installed.

On a server that runs Docker

  1. Open the server, choose Manage, then Settings. Under Container engine, choose Engines and checks….
  2. Choose Add Kiri. Kiri is installed beside Docker and started on its own socket. Docker and its apps keep running.
  3. kubespin checks everything it relies on, on Kiri: pulling from the registry, Compose, logs, exec, live stats, memory limits, events, building and more. Each check shows passed or failed with its output. Check again reruns them.
  4. When the checks pass, choose Switch to Kiri….

The switch:

  • stops each of kubespin’s apps on Docker (Docker keeps its copy);
  • copies their named volumes to Kiri;
  • stops Docker and containerd and keeps them off at boot (they’re not uninstalled);
  • gives Docker’s socket to Kiri and starts the apps there, each of which must have every service running within two minutes;
  • moves kubespin’s agent to Kiri.

If any step fails, everything goes back on Docker as it was.

Containers kubespin doesn’t manage stop the switch before anything changes. Kubernetes clusters on kind or Colima keep running, and the switch page offers to make each one again on Kiri (kubespin: Clusters on kind, Colima or Kiri). On a home server the switch runs as one script on the machine itself, so it can’t cut kubespin off halfway.

Switching back

Switch back to Docker… starts Docker again and moves the apps back the same way.

Freeing Docker’s old data

On a server that runs Kiri with Docker stopped, Remove Docker’s old data… deletes Docker’s images, containers and volumes from before the switch, and says how much that frees. Docker’s packages stay, since Kiri uses the docker command.

Firewall note

Beside Docker, Kiri needs three rules in Docker’s DOCKER-USER chain so its containers can reach the internet. kubespin adds them, labelled kubespin-kiri, and removes them with Kiri. The confirmation says so. This is the one place kubespin writes firewall rules.