1
0
mirror of https://github.com/docker/cli.git synced 2025-07-30 17:03:07 +03:00

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 <gabgore@cisco.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Gabriel
2018-11-07 15:11:14 -05:00
committed by Sebastiaan van Stijn
parent b3ab7c9665
commit 6cee6085d6

View File

@ -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