spiegel_podman/cmd/podman/common
Jan Rodák 4d3c6311a5
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>
2025-12-02 15:40:46 +01:00
..
build.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
completion.go Fix unless-stopped restart policy to match Docker behavior 2025-12-02 15:40:46 +01:00
completion_test.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
create.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
create_opts.go Bump Go version to v6 2025-10-23 11:00:15 -04:00
create_test.go Bump Go version to v6 2025-10-23 11:00:15 -04:00
default.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
inspect.go Add artifact fallback to podman inspect command 2025-10-02 06:52:32 -04:00
netflags.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
registries.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
sign.go Bump Go version to v6 2025-10-23 11:00:15 -04:00
term.go remove github.com/buger/goterm dependency 2025-03-31 19:17:55 +02:00