/version API endpoint reports wrong ApiVersion and MinAPIVersion #7682
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.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The REST API is supposed to be compatible with Docker's API version 1.40, but it reports version 1.0.0.
This trips up certain client libraries (most notably https://github.com/docker/docker-py and by extension Ansible) which currently require a minimum API version of 1.21.
Steps to reproduce the issue:
From the command line:
curl -sv --unix-socket /run/podman/podman.sock http://localhost/version
With Python:
pip3 install -U docker; python3
Describe the results you received:
The version endpoint returns the following data:
Describe the results you expected:
According to
podman/pkg/api/types/types.go
Line 5 in 90636fe
ApiVersion
should be "1.40" andMinAPIVersion
should be "1.24"Output of
podman version
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Installed on Ubuntu 20.04 LTS from OBS:
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
2.0.6 is the latest sable release
Additional environment details (AWS, VirtualBox, physical, etc.):
Tested with
The text was updated successfully, but these errors were encountered: