A single bash script for managing Podman Quadlet services on the host. Wraps podman exec, podman quadlet, and systemctl; unrecognized commands pass straight through to podman.
Pairs naturally with Pods, a web UI that manages a host through lpod's --json commands, but lpod doesn't require it — point it at any Quadlet-managed service.
- Linux with systemd (macOS, Windows, and WSL are not supported)
- Podman with Quadlet support
- For the
--jsoncommands that tools such as Pods run:jq, andgitforquadlet fetch,catalog,tagsandhead
curl -fsSL https://github.com/foxws/lpod/releases/latest/download/install.sh | bashInstalls lpod to ~/.local/bin, verified against the release's checksums. Upgrade with lpod self-update. No PHP or Composer required. lpod is being rewritten in Go (#59): on amd64 and arm64 it's a Go binary with the bash script next to it as lpod.sh. See Installation for pinning a release, installing by hand, and a shell alias.
lpod SERVICE COMMAND [options] [arguments]lpod app up # start the service
lpod app shell # shell into the container
lpod app artisan migrateSERVICE is a Quadlet service name (your app, or a sibling like pgsql). See Usage for details.
Full documentation: browse docs/
tests/run.shRuns the --json commands against stand-ins for podman, systemctl, journalctl and loginctl (tests/stubs), which answer from the host in tests/host. It checks the output, the keys of the contract's fixtures (tests/fixtures) and how often lpod asks the host. It needs bash and jq.
The Go code has its own tests, and the same tests/run.sh runs through the Go binary with LPOD_UNDER_TEST:
go test ./...
go build -o /tmp/lpod/lpod ./cmd/lpod && cp bin/lpod /tmp/lpod/lpod.sh
LPOD_UNDER_TEST=/tmp/lpod/lpod tests/run.shThe devcontainer has Go, shellcheck, jq and gh.
- foxws/pods — the web UI
lpodpairs with - Podman Quadlet reference