spiegel_podman/cmd/podman/common
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
..
build.go Fix podman build "newer" pull policy 2026-02-06 15:36:47 -05:00
completion.go Fix unless-stopped restart policy to match Docker behavior 2026-02-06 15:36:47 -05:00
completion_test.go update golangci-lint to v1.62.0 2024-11-11 14:21:17 +01:00
create.go Add ulimits to podman update API 2026-02-06 15:36:47 -05:00
create_opts.go chore: make function comment match function name 2025-04-09 19:51:21 +08:00
create_test.go Switch all calls of assert.Nil to assert.NoError 2025-01-15 07:08:27 -05:00
default.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
inspect.go Add artifact fallback to podman inspect command 2025-10-02 06:52:32 -04:00
netflags.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
registries.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
sign.go Add --sign-by-sq-fingerprint to push operations 2025-09-11 20:32:32 +02:00
term.go remove github.com/buger/goterm dependency 2025-03-31 19:17:55 +02:00