When I query the version endpoint using curl and the local docker.sock, the keys are identical:
Output with docker 28.1.1:
me@docker:~$ curl --silent -XGET --unix-socket /run/docker.sock http://localhost/version | jq .
{
...
"Components": [
{
"Version": "28.1.1",
"Details": {
"ApiVersion": "1.49",
"MinAPIVersion": "1.24",
}
},
"Version": "28.1.1",
"ApiVersion": "1.49",
"MinAPIVersion": "1.24",
...
}
Output of Docker Version 29.0.0:
me@docker~ # curl --silent -XGET --unix-socket /run/docker.sock http://localhost/version | jq .
{
...
"Version": "29.0.0",
"ApiVersion": "1.52",
"MinAPIVersion": "1.44",
"Components": [
{
"Version": "29.0.0",
"Details": {
"ApiVersion": "1.52",
"MinAPIVersion": "1.44",
}
}
Of course, you can try with a specific version of the api:
curl --silent -XGET --unix-socket /run/docker.sock http://localhost/v1.44/version | jq .