Skip to content

Commit

Permalink
fix: API versions before v1.24 are deprecated
Browse files Browse the repository at this point in the history
so go from the minimum version 1.18 to 1.24.

Signed-off-by: Davide Madrisan <d.madrisan@proton.me>
  • Loading branch information
madrisan committed Apr 5, 2024
1 parent 5725b76 commit 366a9d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 366a9d7

Please sign in to comment.