spiegel_podman/pkg/api/handlers/compat
Jan Kaluza ee2370bc26
Handle "Entrypoint":[] in compat containers/create API.
When using `docker compose run --entrypoint ''`, docker sends
`"Entrypoint": []` in the JSON. Podman currently treats that
as `nil` and fallback to default image entrypoint.

This is not what is expected by the user. Instead, it should
not use any entrypoint.

This commit fixes it by properly propagating the `[]` downstream
to libpod.

Fixes: #26078

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
(cherry picked from commit 3a981915f0)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-04 11:39:49 +02: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 update podman socket output to include also exposed ports 2025-05-06 20:24:36 +00: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 Handle "Entrypoint":[] in compat containers/create API. 2025-06-04 11:39:49 +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 Fix: inheritlabels=true if query param absent 2025-04-28 17:38:19 +00: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 Add podman manifest rm --ignore 2025-01-22 11:43:47 -05: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