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 .- Images come from any OCI registry.
buildreads a Containerfile or Dockerfile and reuses each step whose inputs haven't changed. - Networking gives each container its own loopback address, so two containers can listen on the same port.
-pforwards a host port to a container. - Networks, volumes, pods, secrets and health checks work as they do in podman. Networks don't isolate traffic, since every address is on loopback.
- Users are faked:
sudo,suandsshd's privilege separation work, and files you own show as owned by each process's user.
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 webDependencies, 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.