spiegel_podman/cmd
Jan Rodák 86b6c75cef Fix unless-stopped restart policy to match Docker behavior
- Update documentation: Differentiate `unless-stopped` from `always` - containers stopped by the user before a reboot will not restart.
- Add `should-start-on-boot` filter: Identify containers that require a restart after a system reboot.
- Update command documentation: Add `restart-policy` and `label!` filters to the documentation for container commands (rm, ps, start, stop, pause, unpause, restart).
- Add `restart-policy` and `shoud-start-on-boot` to completions.
- Update service: Update `podman-restart.service` to use the `needs-restart=true` filter.
- Preserve state: Preserve the `StoppedByUser` state across reboots.
- Update API: Add a `ShouldStartOnBoot()` method to the Container API.
- Update documentation: Add descriptions for the `should-start-on-boot` filter.

Fixes: https://issues.redhat.com/browse/RHEL-129405
Fixes: https://github.com/containers/podman/issues/20418

Signed-off-by: Jan Rodák <hony.com@seznam.cz>

<MH: Fixed cherry-pick conflicts>

Signed-off-by: Matt Heon <matthew.heon@pm.me>
2026-02-06 15:36:47 -05:00
..
podman Fix unless-stopped restart policy to match Docker behavior 2026-02-06 15:36:47 -05:00
podman-mac-helper lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
podman-testing Fix missing newlines in stderr error messages 2026-02-06 13:46:36 -05:00
podman-wslkerninst WSL commands execution refactoring 2025-07-02 20:18:52 +00:00
quadlet fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
rootlessport fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
winpath use strings.SplitSeq where possible 2025-09-10 16:17:04 +02:00