I've looked at other resources, and can't find much that is relevant to my situation.
I am running an instance with the following command
docker run -d --restart=unless-stopped --name my_container -v my_volume:/path/to/container container:latest
For some reason, when I reboot the host, the container does not start automatically.
Container Logs
On manual container start
level=info msg="redis not configured"
level=info msg="Starting upload purge in 57m"
level=info msg="Using inmemory blob descriptor cache"
level=info msg="Restricting TLS..."
level=info msg="Restricting TLS Ciphers..."
No logs get generated from container on reboot because container does not actually start.
I've checked journalctl
after reboot, and I see an entry for .mount
, but none in regards to a container starting.
I've inspected the containers meta data, and see the following
"CreateCommand": [
"--restart=always"
"RestartPolicy": {
"Name": "always",
I've inspected docker version
:
Client: Podman Engine
Version: 4.9.4
Finally I have tried multiple different parameters for --restart
, including: --restart unless-stopped
--restart always
In the past I've allowed persistency using systemctl, but I'm attempting to avoid that for consistency sake. Any ideas would be great, as I feel like everything that needs to be in place is, so I'm not sure why this is not working.
I'm running podman on RHEL 8
I've looked at other resources, and can't find much that is relevant to my situation.
I am running an instance with the following command
docker run -d --restart=unless-stopped --name my_container -v my_volume:/path/to/container container:latest
For some reason, when I reboot the host, the container does not start automatically.
Container Logs
On manual container start
level=info msg="redis not configured"
level=info msg="Starting upload purge in 57m"
level=info msg="Using inmemory blob descriptor cache"
level=info msg="Restricting TLS..."
level=info msg="Restricting TLS Ciphers..."
No logs get generated from container on reboot because container does not actually start.
I've checked journalctl
after reboot, and I see an entry for .mount
, but none in regards to a container starting.
I've inspected the containers meta data, and see the following
"CreateCommand": [
"--restart=always"
"RestartPolicy": {
"Name": "always",
I've inspected docker version
:
Client: Podman Engine
Version: 4.9.4
Finally I have tried multiple different parameters for --restart
, including: --restart unless-stopped
--restart always
In the past I've allowed persistency using systemctl, but I'm attempting to avoid that for consistency sake. Any ideas would be great, as I feel like everything that needs to be in place is, so I'm not sure why this is not working.
I'm running podman on RHEL 8
After using the documentation provided by @jabaa docs.podman.io/en/v4.4/markdown/options/restart.html
$ docker version
$ systemctl status podman-restart.service
$ systemctl enable podman-restart.service
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