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
..
2026-02-05 14:56:03 +01:00
2025-09-01 12:33:04 +02:00
2025-10-16 14:11:29 -04:00
2025-09-01 12:33:04 +02:00
2024-01-04 11:53:38 +02:00
2025-10-16 14:11:29 -04:00
2025-09-10 16:17:04 +02:00
2025-09-10 16:17:04 +02:00
2024-11-27 08:09:50 -05:00
2025-10-16 14:11:29 -04:00
2025-10-22 09:24:43 -04:00
2025-09-01 12:33:04 +02:00
2026-02-06 15:36:47 -05:00
2025-09-10 16:17:04 +02:00
2025-09-10 16:17:04 +02:00
2025-09-01 12:33:04 +02:00
2024-11-27 08:09:50 -05:00
2024-11-27 08:09:50 -05:00
2026-02-06 15:36:47 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2025-10-01 10:42:08 -04:00
2026-02-06 15:36:47 -05:00
2024-09-02 11:21:35 +01:00
2025-09-01 12:33:04 +02:00
2026-02-06 15:36:47 -05:00
2025-12-04 16:09:56 +00:00
2025-10-01 10:42:08 -04:00
2025-04-07 18:11:06 +02:00
2025-11-07 10:58:16 -05:00
2025-09-01 12:33:04 +02:00
2026-02-06 15:36:47 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-11-01 18:53:08 +01:00
2024-01-04 11:53:38 +02:00
2024-11-27 08:09:50 -05:00
2024-11-27 08:09:50 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2025-09-02 16:17:18 +00:00
2024-06-27 10:50:17 +02:00
2025-09-10 16:17:04 +02:00
2024-01-04 11:53:38 +02:00
2025-09-01 12:33:04 +02:00
2026-02-06 15:36:47 -05:00
2025-09-01 12:33:04 +02:00
2022-03-23 19:05:29 +01:00
2025-03-12 21:27:00 +01:00
2025-09-01 12:33:04 +02:00
2026-02-06 13:46:36 -05:00
2025-10-01 10:42:08 -04:00
2025-10-01 10:42:08 -04:00
2026-02-06 13:46:36 -05:00
2025-10-01 10:42:08 -04:00
2025-09-01 12:33:04 +02:00
2024-02-08 09:35:39 -05:00
2025-09-10 16:17:04 +02:00
2025-10-01 10:42:08 -04:00
2024-01-04 11:53:38 +02:00
2025-10-01 10:42:08 -04:00
2025-10-01 10:42:08 -04:00
2025-09-10 16:17:04 +02:00
2025-09-01 12:33:04 +02:00
2025-09-10 16:17:04 +02:00
2025-09-01 12:33:04 +02:00
2025-09-01 12:33:04 +02:00
2025-09-01 12:33:04 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2025-10-20 10:57:46 +00:00
2025-10-16 14:11:29 -04:00
2025-10-01 10:42:08 -04:00
2025-09-01 12:33:04 +02:00
2025-10-01 10:42:08 -04:00
2025-09-10 16:17:05 +02:00
2024-01-04 11:53:38 +02:00
2025-10-01 10:42:08 -04:00
2025-09-10 16:17:04 +02:00
2025-09-01 12:33:04 +02:00
2025-10-16 14:11:29 -04:00
2025-09-01 12:33:04 +02:00
2024-01-04 11:53:38 +02:00
2025-09-01 12:33:04 +02:00
2025-09-01 12:33:04 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2025-09-10 16:17:04 +02:00
2025-09-10 16:17:04 +02:00
2025-09-01 12:33:04 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2025-09-01 12:33:04 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2025-10-16 14:11:29 -04:00
2025-10-01 10:42:08 -04:00
2025-09-01 12:33:04 +02:00
2025-10-16 14:11:29 -04:00
2025-02-11 15:13:29 +00:00
2025-02-11 15:13:29 +00:00
2025-02-11 15:13:29 +00:00
2025-02-11 15:13:29 +00:00
2025-10-01 10:42:08 -04:00
2025-10-01 10:42:08 -04:00
2025-09-01 12:33:04 +02:00
2025-10-01 10:42:08 -04:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2025-10-16 14:11:29 -04:00
2024-08-15 11:07:27 +02:00
2024-07-09 11:15:29 +02:00
2025-10-16 14:11:29 -04:00
2024-02-08 09:35:39 -05:00
2025-09-01 12:33:04 +02:00
2026-02-06 13:46:37 -05:00
2025-10-01 10:42:08 -04:00
2025-09-01 12:33:04 +02:00
2024-02-08 09:35:39 -05:00
2025-09-18 14:24:35 +00:00
2025-09-01 12:33:04 +02:00
2025-09-01 12:33:04 +02:00
2025-10-01 10:42:08 -04:00
2025-10-01 10:42:08 -04:00
2025-09-01 12:33:04 +02:00
2025-05-20 15:52:27 +02:00
2025-09-10 16:17:04 +02:00
2025-09-10 16:17:04 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-05-22 17:47:01 -04:00
2026-02-06 15:36:19 -05:00
2026-02-06 15:36:19 -05:00