spiegel_podman/cmd/podman/containers
Jan Rodák fcc6ae217c [v5.8] Fix unless-stopped containers not restarting after ...
`podman-restart.service` stop them

When `podman-restart.service` stops containers, it marks them as "stopped by
user" which breaks the `unless-stopped` restart policy. Add hidden
`--not-stopped-by-user` flag to prevent this, allowing `unless-stopped`
containers to restart on next boot.

Fixes: https://github.com/containers/podman/issues/28152
Fixes: https://issues.redhat.com/browse/RUN-4357

Cherry pick fixes: https://redhat.atlassian.net/browse/RHEL-157746, https://redhat.atlassian.net/browse/RHEL-157747

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit 7326b862e3)
Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
2026-03-19 19:40:30 -04:00
..
attach.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
checkpoint.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
cleanup.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
clone.go cmd/podman: refactor Context handling 2025-02-12 14:01:10 +01:00
commit.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
container.go Remove containers/common/pkg/config from pkg/util 2024-09-06 07:45:04 -04:00
cp.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
create.go fix: improve userns validation when joining pods 2026-02-06 15:36:47 -05:00
diff.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
exec.go feat(exec): Add --no-session flag for improved performance 2026-02-06 15:36:47 -05:00
exists.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
export.go fileperms: newer Go 1.13+ octal literal format 2025-10-16 14:11:29 -04:00
init.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
inspect.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
kill.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
list.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
logs.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
mount.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
pause.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
port.go use strings.SplitSeq where possible 2025-09-10 16:17:04 +02:00
prune.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
ps.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
ps_test.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
rename.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
restart.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
restore.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
rm.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
run.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
runlabel.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
start.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
stats.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
stop.go [v5.8] Fix unless-stopped containers not restarting after ... 2026-03-19 19:40:30 -04:00
top.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
unmount.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
unpause.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
update.go Add ulimits to podman update API 2026-02-06 15:36:47 -05:00
wait.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00