spiegel_podman/pkg/domain
Lewis Roy 6e7de438cc
bug: Correct Docker compat REST API image delete endpoint
The Docker `-XDELETE image/$name?force=true` endpoint only removes
containers using an image if they are in a non running state.

In Podman, when forcefully removing images we also forcefully delete
containers using the image including running containers.

This patch changes the Docker image force delete compat API to act like the
Docker API while maintaining commands like `podman rmi -f $imagename`

It also corrects the API return code returned when an image is requested
to be deleted with running containers using it.

Fixes: https://github.com/containers/podman/issues/25871

Signed-off-by: Lewis Roy <lewis@redhat.com>
2025-04-27 20:51:11 +10:00
..
entities bug: Correct Docker compat REST API image delete endpoint 2025-04-27 20:51:11 +10:00
filters Merge pull request #24791 from arsenalzp/issue_24664 2025-04-08 12:55:09 +00:00
infra bug: Correct Docker compat REST API image delete endpoint 2025-04-27 20:51:11 +10:00
utils Add type and annotations to artifact add 2025-01-31 09:53:03 -06:00