flatpod

flatpod runs OCI container images where the kernel gives an unprivileged user no namespaces, such as Termux on Android. It takes podman's command line and runs systemd units and quadlets. Every container runs as an ordinary process on one flat host. A seccomp filter rewrites file paths inside each process, so each container sees its own root filesystem.

curl -fsSL https://releases.santoku.dev/flatpod/0.1.1-1/install.sh | sh
Source MIT

Install

The installer downloads the release, checks its sha256 and runs toku install, which puts flatpod on your PATH. It needs curl, tar, bash, sha256sum and a C compiler, and runs on Termux on arm64. The first run compiles flatpod's init and trap helpers.

Getting started

flatpod run -ti --rm ubuntu
flatpod run -d --name web -v "$PWD":/srv -w /srv alpine sh -c 'while true; do date; sleep 1; done'
flatpod ps -a
flatpod logs web
flatpod stop web
flatpod build -t app -f Dockerfile .

Quadlets and systemd

flatpod runs podman quadlet files (.container, .pod, .network, .volume, .build and .image) under its own service manager:

flatpod systemctl --user daemon-reload
flatpod systemctl --user start web
flatpod journalctl --user -u web

Dependencies, restarts, timers and conditions work as in systemd. A container started with --systemd=always boots its own units, and the containers it starts run beside it.

What flatpod doesn't do

flatpod doesn't isolate containers from each other or from your user. Capabilities, memory limits and .kube files aren't supported. A quadlet key flatpod can't honour logs a warning.