podman/pkg/api
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
..
handlers bug: Correct Docker compat REST API image delete endpoint 2025-04-27 20:51:11 +10:00
server bug: Correct Docker compat REST API image delete endpoint 2025-04-27 20:51:11 +10:00
types set !remote build tags where needed 2024-08-19 11:41:28 +02: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