2014-07-01 02:58:04 +00:00
% DOCKER(1) Docker User Manuals
% Docker Community
2015-06-25 16:55:46 +00:00
% JUNE 2015
2014-07-01 02:58:04 +00:00
# NAME
docker-version - Show the Docker version information.
# SYNOPSIS
**docker version**
2015-06-26 01:25:41 +00:00
[**--help**]
[**-f**|**--format**[=*FORMAT*]]
2014-07-01 02:58:04 +00:00
2015-06-25 16:55:46 +00:00
# DESCRIPTION
This command displays version information for both the Docker client and
daemon.
2014-07-01 02:58:04 +00:00
# OPTIONS
2015-06-26 01:25:41 +00:00
**--help**
Print usage statement
**-f**, ** --format**=""
2016-10-18 10:50:11 +00:00
Format the output using the given Go template.
2014-07-01 02:58:04 +00:00
2015-06-25 16:55:46 +00:00
# EXAMPLES
## Display Docker version information
2015-06-26 01:25:41 +00:00
The default output:
2015-06-25 16:55:46 +00:00
$ docker version
Client:
Version: 1.8.0
API version: 1.20
Go version: go1.4.2
Git commit: f5bae0a
Built: Tue Jun 23 17:56:00 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.8.0
API version: 1.20
Go version: go1.4.2
Git commit: f5bae0a
Built: Tue Jun 23 17:56:00 UTC 2015
OS/Arch: linux/amd64
2015-06-26 01:25:41 +00:00
Get server version:
$ docker version --format '{{.Server.Version}}'
1.8.0
Dump raw data:
To view all available fields, you can use the format `{{json .}}` .
$ docker version --format '{{json .}}'
{"Client":{"Version":"1.8.0","ApiVersion":"1.20","GitCommit":"f5bae0a","GoVersion":"go1.4.2","Os":"linux","Arch":"amd64","BuildTime":"Tue Jun 23 17:56:00 UTC 2015"},"ServerOK":true,"Server":{"Version":"1.8.0","ApiVersion":"1.20","GitCommit":"f5bae0a","GoVersion":"go1.4.2","Os":"linux","Arch":"amd64","KernelVersion":"3.13.2-gentoo","BuildTime":"Tue Jun 23 17:56:00 UTC 2015"}}
2015-06-25 16:55:46 +00:00
2014-07-01 02:58:04 +00:00
# HISTORY
June 2014, updated by Sven Dowideit < SvenDowideit @ home . org . au >
2015-06-25 16:55:46 +00:00
June 2015, updated by John Howard < jhoward @ microsoft . com >
2016-12-01 11:35:27 +00:00
June 2015, updated by Patrick Hemmer < patrick.hemmer @ gmail . com >