This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:podman [2026/03/30 04:01] – oemb1905 | computing:podman [2026/10/10 01:41] (current) – oemb1905 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Podman | + | ------------------------------------------- |
| + | * **podman** | ||
| + | * **Jonathan Haack** | ||
| + | * **Haack' | ||
| + | * **webmaster@haacksnetworking.org** | ||
| + | ------------------------------------------- | ||
| - | --- // | + | // |
| + | |||
| + | ------------------------------------------- | ||
| + | ~~NOTOC~~ | ||
| + | |||
| + | ==== Introduction ==== | ||
| + | Rootless Podman runs as user '' | ||
| + | |||
| + | ^ Item ^ Value ^ | ||
| + | | User | '' | ||
| + | | Linger | yes | | ||
| + | | Graph root | ''/ | ||
| + | | Cgroup manager | systemd | | ||
| + | | Quadlets | '' | ||
| + | | Version | 5.8.6 | | ||
| + | |||
| + | ==== 1. User and linger ==== | ||
| + | < | ||
| + | adduser --system --group --home / | ||
| + | loginctl enable-linger worker | ||
| + | </ | ||
| + | |||
| + | Verify: | ||
| + | |||
| + | < | ||
| + | loginctl show-user worker -p Linger | ||
| + | id worker | ||
| + | </ | ||
| + | |||
| + | Expect '' | ||
| + | |||
| + | ==== 2. Install ==== | ||
| + | < | ||
| + | apt install -y podman podman-compose | ||
| + | </ | ||
| + | |||
| + | Confirm as '' | ||
| + | |||
| + | < | ||
| + | podman version | ||
| + | podman info --format ' | ||
| + | </ | ||
| + | |||
| + | Expect '' | ||
| + | |||
| + | ==== 3. Session bus ==== | ||
| + | User units need the session bus. As '' | ||
| + | |||
| + | < | ||
| + | export XDG_RUNTIME_DIR=/ | ||
| + | export DBUS_SESSION_BUS_ADDRESS=unix: | ||
| + | </ | ||
| + | |||
| + | Do not use '' | ||
| + | |||
| + | ==== 4. Quadlets ==== | ||
| + | Units live in '' | ||
| + | |||
| + | < | ||
| + | mkdir -p ~/ | ||
| + | </ | ||
| + | |||
| + | A '' | ||
| + | |||
| + | After creating or editing a '' | ||
| + | |||
| + | < | ||
| + | systemctl --user daemon-reload | ||
| + | systemctl --user reset-failed container-NAME.service | ||
| + | systemctl --user start container-NAME.service | ||
| + | </ | ||
| + | |||
| + | ==== 5. Verify ==== | ||
| + | < | ||
| + | systemctl --user is-active container-*.service | ||
| + | podman ps -a | ||
| + | podman info --format ' | ||
| + | ls -la ~/ | ||
| + | </ | ||
| + | |||
| + | Expect rootless true, graph root ''/ | ||
| + | |||
| + | ==== Facts ==== | ||
| + | * R | ||
| + | * | ||
| + | |||
| + | |||
| + | --- // | ||