spiegel_podman/pkg/api
Matt Heon a5766aa377 [v5.2-rhel] Fix podman stop and podman run --rmi
This started off as an attempt to make `podman stop` on a
container started with `--rm` actually remove the container,
instead of just cleaning it up and waiting for the cleanup
process to finish the removal.

In the process, I realized that `podman run --rmi` was rather
broken. It was only done as part of the Podman CLI, not the
cleanup process (meaning it only worked with attached containers)
and the way it was wired meant that I was fairly confident that
it wouldn't work if I did a `podman stop` on an attached
container run with `--rmi`. I rewired it to use the same
mechanism that `podman run --rm` uses, so it should be a lot more
durable now, and I also wired it into `podman inspect` so you can
tell that a container will remove its image.

Tests have been added for the changes to `podman run --rmi`. No
tests for `stop` on a `run --rm` container as that would be racy.

Fixes #22852
Fixes RHEL-39513

For this branch
Backport of: [458ba5a](458ba5a8af)
Fixes: https://issues.redhat.com/browse/RHEL-61667

Signed-off-by: Matt Heon <mheon@redhat.com>
Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-10-08 14:03:40 -04:00
..
handlers [v5.2-rhel] Fix podman stop and podman run --rmi 2024-10-08 14:03:40 -04:00
server [v5.2] set !remote build tags where needed 2024-08-21 12:06:44 -04:00
types [v5.2] set !remote build tags where needed 2024-08-21 12:06:44 -04:00
Makefile swagger: exlude new docker network types 2024-07-12 14:19:37 +02:00
tags.yaml [CI:DOCS] Set all operation id to be compatibile 2021-04-05 19:54:30 -07:00