Skip to content

Instantly share code, notes, and snippets.

View randolf's full-sized avatar
🇨🇦
I may be slow to respond.

Randolf Richardson 張文道 randolf

🇨🇦
I may be slow to respond.
View GitHub Profile
@plembo
plembo / autopodonreboot.md
Last active November 25, 2025 14:26
Automatically start pod on reboot

Auto start podman containers on reboot as systemd services

NOTE: This was written while I was experimenting with using podman in lieu of docker, something I'm now looking at again. Not all docker images work with podman, so be prepared to struggle with the system and to engage in many fruitless Internet searches.

Intro

OK, so who knew podman containers won't automatically start on reboot? Yeah. Me neither.

Found out after a family member complained about getting a 500 error when trying to reach a PiGallery2 instance I had set up on the home server.

Fixing this is easy, as detailed in Pratham Patel's "How to Autostart Podman Containers?" over on Linux Handbook: A systemd servic