From 366a9d745fb62ccd64e05ea5916eb4988ec55d2b Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Fri, 5 Apr 2024 19:18:30 +0200 Subject: [PATCH] fix: API versions before v1.24 are deprecated so go from the minimum version 1.18 to 1.24. Signed-off-by: Davide Madrisan --- lib/container.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/container.c b/lib/container.c index d52a2bb..61b82aa 100644 --- a/lib/container.c +++ b/lib/container.c @@ -142,7 +142,7 @@ docker_init (CURL **curl_handle, chunk_t *chunk, const char *socket) } else plugin_error (STATE_UNKNOWN, 0, - "unset socket path and DOCKER_HOST env variable"); + "the socket path was not set, nor was the environment variable DOCKER_HOST"); } curl_global_init (CURL_GLOBAL_ALL); @@ -175,7 +175,7 @@ docker_get (CURL *curl_handle, const int query, const char *id) api_version = secure_getenv ("DOCKER_API_VERSION"); if (NULL == api_version) - api_version = "1.18"; + api_version = "1.24"; /* API versions before v1.24 are deprecated. */ else dbg ("setting Docker API version according to DOCKER_API_VERSION: %s\n", api_version);