Alignment with moby swagger definition for ContainerConfig.entrypoint
#14513
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
stale-issue
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
running
podman inspect <running container>
returns schema which is not aligned to current https://github.com/moby/moby/blob/master/api/swagger.yaml definition. Json returned byinspect
command diverges from schema in at least two situations:ContainerConfig.entrypoint
which is returned bypodman
as string but according to definition https://github.com/moby/moby/blob/master/api/swagger.yaml#L1271-L1281` it should be array of strings."Entrypoint": "",
ContainerConfig.StopSignal
is returned as integer, schema defines it as string at it might be integer value of signal or string value. https://github.com/moby/moby/blob/aca813e1359f1a3501f1b7453e05b10b3425a90d/api/swagger.yaml#L1306-L1311This problem is annoying as strongly typed languages (e.g
rust
) do not like having discrepancy between types.Steps to reproduce the issue:
podman inspect <container_id>
Entrypoint
andStopSignal
returned in outputDescribe the results you received:
entrypoint
andstopsignal
have wrong types (as per swagger definition)Describe the results you expected:
I'd expect them to be string array and string
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:but issues is available in earlier versions as well
Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: