Unable to autostart podman container systemd service
Hello,
I generated systemd service file for my container using this command:
"podman generate systemd --new --files --name mydb"
Then enabled the service and enabled linger for user. Starting the service starts the conaitner without problem. However, after restarting the host and running podman ps, I get this error:
Error: current system boot ID differs from cached boot ID: an unhandled reboot has occurred. Please delete directories "/tmp/storage-run-1234/containers" and "/
tmp/storage-run-1234/libpod/tmp" and re-run Podman
Deleting those tmp files solves the problem and I am able to manually start service. But I need it to start automatically.
How can I fix this problem??
Responses