79403318

Date: 2025-01-31 16:10:40
Score: 1.5
Natty:
Report link

After using the documentation provided by @jabaa docs.podman.io/en/v4.4/markdown/options/restart.html

  1. Verified that I was using podman with:
$ docker version
  1. Checked the status of podman-restart.service
$ systemctl status podman-restart.service
  1. Service was not running, so I enabled the service:
$ systemctl enable podman-restart.service
  1. Restarted the host machine
  2. Checked container status
  3. Container now starts on reboot.

If you would like to edit the restart policy, or how the service determines what containers get effected, you can find the unit file for this service at /usr/lib/systemd/system/podman-restart.service

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jabaa
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ambre