From 6cee6085d62ad56fc7f85845d5b918eef4635ee8 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 7 Nov 2018 15:11:14 -0500 Subject: [PATCH] Add example get API version Getting the client API version is non-intuitive. Other keys follow the json example or the version output, however `'{{.Client.ApiVersion}}'` does not work, nor does `'{{.Client.APIversion}}'` Signed-off-by: Gabriel Gore Signed-off-by: Sebastiaan van Stijn --- docs/reference/commandline/version.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/reference/commandline/version.md b/docs/reference/commandline/version.md index e6b8fbf148..1f41854746 100644 --- a/docs/reference/commandline/version.md +++ b/docs/reference/commandline/version.md @@ -69,6 +69,14 @@ $ docker version --format '{{.Server.Version}}' 19.03.8 ``` +### Get the client API version + +```console +$ docker version --format '{{.Client.APIVersion}}' + +1.41 +``` + ### Dump raw JSON data ```console