spiegel_podman/pkg/api/handlers/compat
Rudraksha Singh 2ac2529bf7
compat: ignore dead and restarting status filters
Docker documents `dead` and `restarting` as valid values for the
`status` filter on `/containers/json`. Podman returns HTTP 500 when
either of them is used even though no Podman container can ever be in
those states.

Ignore these values in the compat API. If they are the only status
filters, return an empty list like Docker does. Invalid status values
still return an error.

The libpod API still rejects these values since they are Docker
specific. Update the libpod API docs to list the states Podman
actually supports.

Reference:
https://docs.docker.com/reference/api/engine/version/v1.51/#tag/Container/operation/ContainerList

Fixes: #28904
Signed-off-by: Rudraksha Singh <rudraksharss@gmail.com>
2026-09-29 00:21:19 +05:30
..
auth.go run modernize -fix ./... 2026-09-04 11:53:04 +02:00
changes.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers.go compat: ignore dead and restarting status filters 2026-09-29 00:21:19 +05:30
containers_archive.go Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
containers_attach.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_create.go compat API: accept inline seccomp profiles 2026-09-24 10:31:00 +02:00
containers_create_test.go compat API: accept inline seccomp profiles 2026-09-24 10:31:00 +02:00
containers_export.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_logs.go api: avoid sizing logs channel from tail 2026-06-26 10:31:13 +03:00
containers_pause.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_prune.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_restart.go Respect container StopTimeout in container restart REST APIs 2026-09-02 10:39:55 -07:00
containers_start.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_stats.go api: reflect container stats errors in HTTP status codes 2026-09-04 20:42:55 +09:00
containers_stats_freebsd.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_stats_linux.go fix(api): nil check Memory.Limit before dereference in stats handler 2026-08-23 18:20:37 +04:00
containers_stats_test.go api: reflect container stats errors in HTTP status codes 2026-09-04 20:42:55 +09:00
containers_stop.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_top.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
containers_unpause.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
distribution.go api: implement compat distribution inspect endpoint 2026-09-22 21:14:45 -04:00
events.go Add reasons to all staticcheck suppressions 2026-06-12 10:12:40 +02:00
exec.go Allow running exec with no attach streams requested 2026-09-21 10:34:55 -04:00
images.go compat: Omit empty Created field from GET /images/{id}/json 2026-09-22 10:03:51 +02:00
images_build.go build: pass ignore file to buildah to consider empty ignore files 2026-07-02 20:24:11 +05:30
images_history.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_prune.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_push.go Add --platform to podman push 2026-09-01 11:30:48 -04:00
images_remove.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images_save.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_search.go fix new golangci-lint staticcheck warnings 2026-09-04 16:40:03 +02:00
images_tag.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
info.go compat: report cgroup driver "none" when rootless with cgroupfs 2026-09-04 09:23:48 -04:00
info_test.go compat: report cgroup driver "none" when rootless with cgroupfs 2026-09-04 09:23:48 -04:00
networks.go fix: include IPRange in Docker-compat network IPAM config 2026-09-16 10:01:35 +05:30
networks_test.go fix: include IPRange in Docker-compat network IPAM config 2026-09-16 10:01:35 +05:30
ping.go RUN-4538: Fix buildah vendoring 2026-04-21 14:27:58 -05:00
resize.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
secrets.go compat/secrets: do not expose secret data on inspect endpoint 2026-08-19 14:30:37 +03:30
system.go fix new golangci-lint staticcheck warnings 2026-09-04 16:40:03 +02:00
types.go api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
unsupported.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
version.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
volumes.go Merge pull request #28673 from kyounghunJang/feat/add-volume-prune-dry-run 2026-05-18 19:26:18 +02:00