Use Docker API v1.24 to get version.

This commit is contained in:
grossmj 2024-02-14 15:40:19 +08:00
parent 16f72b4d3d
commit 1f5085608c
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD

View File

@ -135,7 +135,7 @@ class Docker(BaseManager):
timeout = 60 * 60 * 24 * 31 # One month timeout
if path == 'version':
url = "http://docker/v1.12/" + path # API of docker v1.0
url = "http://docker/v1.24/" + path
else:
url = "http://docker/v" + DOCKER_MINIMUM_API_VERSION + "/" + path
try: