APIv2: container list limit handling seems to differ from docker-API #7722
Labels
HTTP API
Bug is in RESTful API
In Progress
This issue is actively being worked by the assignee, please do not work on this at this time.
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.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
While trying out podman API with traefik, I came across differences in API behaviour:
Steps to reproduce the issue:
This yields an empty array '[]', using 'limit=1', you'll get the expected container
On the other hand:
[{"Id":"fa3efdb9c1e2e5484c33ebcb03ae309c677ee3907b5e6094f87efcf333c63175","Names":["/pedantic_sanderson"],"Image":"nginx","ImageID":"sha256:7e4d58f0e5f3b60077e9a5d96b4be1b974b5a484f54f9393000a99f3b6816e3d","Command":"/docker-entrypoint.sh nginx -g 'daemon off;'","Created":1600779318,"Ports":[{"PrivatePort":80,"Type":"tcp"}],"Labels":{"maintainer":"NGINX Docker Maintainers <[email protected]>"},"State":"running","Status":"Up 15 seconds","HostConfig":{"NetworkMode":"default"},"NetworkSettings":{"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"7fbf25166e9904904e9fc4937058f644cf73da9aea191ff556772d8a8a89541f","EndpointID":"e066dd7864e74d0ec7bf4348eabd79ab459287bb69333d4c5ad73ea2fda57de0","Gateway":"172.17.0.1","IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:02","DriverOpts":null}}},"Mounts":[]}]
Describe the results you received:
podman API yields an empty array using the same API call, while docker returns a list of containers.
Describe the results you expected:
I would expect the same behaviour due to API-compatibility.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
: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?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: