spiegel_podman/pkg
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
..
annotations update golangci-lint to 1.60.1 2024-08-19 11:41:28 +02:00
api bug: Correct Docker compat REST API image delete endpoint 2025-04-27 20:51:11 +10:00
auth Update CI to run Windows unit tests 2025-03-16 13:40:16 +00:00
autoupdate Vendor c/common:8483ef6022b4 2024-08-30 16:13:54 +02:00
bindings Add inherit-labels option to Build API 2025-04-22 23:06:57 -04:00
channel bump golangci-lint to v1.50.1 2022-12-15 13:39:56 +01:00
checkpoint Enable pod restore with crun 2024-10-21 17:37:20 +01:00
copy Fix windows path handling in podman cp 2025-04-08 15:23:08 -07:00
criu chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
ctime update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
domain bug: Correct Docker compat REST API image delete endpoint 2025-04-27 20:51:11 +10:00
emulation pkg/emulation: add linux build tag for elf 2025-04-02 13:35:14 -07:00
env update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
errorhandling ci: rm allow-unused from nolintlint settings 2025-03-31 12:27:55 -07:00
farm bump go to 1.22 2024-09-03 15:14:15 +02:00
fileserver Bump Go module to v5 2024-02-08 09:35:39 -05:00
inspect Bump Go module to v5 2024-02-08 09:35:39 -05:00
k8s.io ci: rm allow-unused from nolintlint settings 2025-03-31 12:27:55 -07:00
libartifact Add ability to set layer media type for artifacts 2025-04-17 10:36:21 -05:00
lookup Cease using deprecated runc userlookup 2024-02-02 11:02:43 -05:00
machine Merge pull request #25701 from danegsta/danegsta/windowsCpPath 2025-04-10 16:53:23 +00:00
namespaces Apply De Morgan's law 2025-03-31 12:27:55 -07:00
parallel Bump Go module to v5 2024-02-08 09:35:39 -05:00
ps add filter for container command 2025-03-02 19:47:44 +02:00
rctl pkg/rctl: fix fprintf statement 2025-03-31 12:27:55 -07:00
rootless pkg/rootless: fix ST1005 warning for freebsd 2025-04-02 13:35:14 -07:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal refacto: unknown signal return signal number without prefix 2024-02-28 19:45:03 +01:00
specgen Replace podman pause image with rootfs. 2025-04-17 08:36:27 +02:00
specgenutil Add support for pids-limit annotation for podman kube play. 2025-03-26 10:06:56 +01:00
specgenutilexternal Apply De Morgan's law 2025-03-31 12:27:55 -07:00
syncmap Add syncmap package and use it for graph stop/remove 2025-02-17 14:32:34 -05:00
systemd Add Label to quadlet pod 2025-04-24 13:37:42 +00:00
terminal Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
timetype Apply De Morgan's law 2025-03-31 12:27:55 -07:00
trust go1.23: use std maps package 2025-03-11 17:21:24 +01:00
util Fix: Remove appending rw as the default mount option 2025-04-23 17:18:03 +05:30