this post was submitted on 05 Jan 2026
5 points (100.0% liked)

Podman

175 readers
3 users here now

founded 2 years ago
MODERATORS
 

With docker-compose, containers would start on boot. It was maybe because I had restart: always on.

Is there a way something similar with podman-compose?

I see mentions of creating custom systemd scripts to run podman-compose to start containers, but is there something already baked in podman-compose that I can use?

you are viewing a single comment's thread
view the rest of the comments
[–] lambalicious@lemmy.sdf.org 4 points 1 week ago

Not something baked-in, no, since the entire point of podman is that it's server- (service-)less.

However they do have a command to manually launch the respective user's podman manager, which IIRC is podman system service -t0 (note: runs in the foreground) so if you add that to a service entry (eg.: via runit user units or systemd user scopes) or just launch it via your user crontab's @reboot, it should work without issues.

This is literally my runit user unit for podman:

#!/bin/sh
export XDG_RUNTIME_DIR=/run/user/1000
exec podman system service -t0