Open yunnysunny opened 8 months ago
Thanks for reaching out, @yunnysunny!
The podman-restart.service
system service needs to be enabled for --restart=always
to work. @baude should that be done for podman-machine directly or are users expected to do that manually?
Thanks @vrothberg , I can resolve the problem in such steps:
podman machine ssh
to enter podman virtual machinesystemctl enable podman-restart.service
to enable podman-restart service in machine
It will restart containers the next time you start podman machine.Should this be something we turn on by default in podman machines?
A friendly reminder that this issue had no activity for 30 days.
Issue Description
I start the container with
--restart always
parameter. I think it will been in running status when podman restart. But the container status is Created when podman machine start.Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
All the status of containers is
Created
. For example:Describe the results you expected
All the status of containers is
Up
.podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response