Best way to map Podman versions to Docker API versions #23691
-
Firstly, thank-you for all the work you have put into Podman - it's a great alternative to Docker. I'm trying to find the best way to see which Docker API version most closely matches the Podman release I'm currently running. The best place that I could find is in the Api-Version header of responses from REST calls to Podman. e.g. podman system service -t 0 &
sudo curl -v --unix-socket /run/podman/podman.sock -H content-type:application/json http://d/v5.1.1/_ping Is this the best method? Thanks for your time! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Api-Version: 1.41 Libpod-Api-Version: 4.9.3 So 1.41 is the Docker API version, while 4.93 is the Podman API version. Or use "docker version" ?
|
Beta Was this translation helpful? Give feedback.
curl --head --unix-socket $XDG_RUNTIME_DIR/podman/podman.sock http://d/v4.9.3/_ping
Api-Version: 1.41
Libpod-Api-Version: 4.9.3
So 1.41 is the Docker API version, while 4.93 is the Podman API version. Or use "docker version" ?