podman/cmd
Matt Heon 458ba5a8af 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

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-08-20 09:51:18 -04:00
..
podman Fix `podman stop` and `podman run --rmi` 2024-08-20 09:51:18 -04:00
podman-mac-helper cmd: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00
podman-testing set !remote build tags where needed 2024-08-19 11:41:28 +02:00
podman-wslkerninst Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
quadlet Merge pull request #23449 from ygalblum/quadlet-override-service-name 2024-08-12 13:56:48 +00:00
rootlessport update github.com/rootless-containers/rootlesskit to v2 2024-04-05 12:25:02 +02:00
winpath Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00