spiegel_podman/pkg/api/handlers/compat
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
..
auth.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
changes.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers.go Add --env and --unsetenv to podman update. 2025-03-21 13:15:44 +01:00
containers_archive.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_attach.go fix races in the HTTP attach API 2024-08-27 15:00:08 +02:00
containers_create.go Fix compat API in rootless mode ignores ulimits 2025-04-17 16:11:34 +02:00
containers_export.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_logs.go Apply De Morgan's law 2025-03-31 12:27:55 -07:00
containers_pause.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_prune.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_restart.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_start.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_stats_freebsd.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_stats_linux.go vendor: update c/common 2025-03-20 13:37:19 +01:00
containers_stop.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_top.go Match output of Compat Top API to Docker 2024-09-17 11:34:22 -04:00
containers_unpause.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
events.go update golangci-lint to v2.1.1 2025-04-14 19:33:42 +02:00
exec.go podman exec: correctly support detaching 2025-01-31 13:29:04 +01:00
images.go ci: rm allow-unused from nolintlint settings 2025-03-31 12:27:55 -07:00
images_build.go Add inherit-labels option to Build API 2025-04-22 23:06:57 -04:00
images_history.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_prune.go vendor: update docker v28 and c/{common,image} 2025-03-11 16:24:14 +01:00
images_push.go fix deprecated docker v28 types 2025-03-11 16:24:34 +01:00
images_remove.go bug: Correct Docker compat REST API image delete endpoint 2025-04-27 20:51:11 +10:00
images_save.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_search.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_tag.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
info.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
networks.go update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
ping.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
resize.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
secrets.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
system.go fix deprecated docker v28 types 2025-03-11 16:24:34 +01:00
types.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
unsupported.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
version.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
volumes.go vendor: update docker v28 and c/{common,image} 2025-03-11 16:24:14 +01:00