podman/pkg/api/handlers
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
..
compat bug: Correct Docker compat REST API image delete endpoint 2025-04-27 20:51:11 +10:00
libpod update golangci-lint to v2.1.1 2025-04-14 19:33:42 +02:00
swagger fix deprecated docker v28 types 2025-03-11 16:24:34 +01:00
types Bump Go module to v5 2024-02-08 09:35:39 -05:00
utils fix deprecated docker v28 types 2025-03-11 16:24:34 +01:00
decoder.go Apply De Morgan's law 2025-03-31 12:27:55 -07:00
types.go Add --env and --unsetenv to podman update. 2025-03-21 13:15:44 +01:00