1DOCKER(1)                          JUNE 2015                         DOCKER(1)
2
3
4

NAME

6       docker-version - Show the Docker version information.
7
8
9

SYNOPSIS

11       docker version [--help] [-f|--format[=FORMAT]]
12
13
14

DESCRIPTION

16       This command displays version information for both the Docker client
17       and daemon.
18
19
20

OPTIONS

22       --help
23           Print usage statement
24
25
26       -f, --format=""
27           Format the output using the given Go template.
28
29
30

EXAMPLES

Display Docker version information

33       The default output:
34
35
36              $ docker version
37              Client:
38               Version:      1.8.0
39               API version:  1.20
40               Go version:   go1.4.2
41               Git commit:   f5bae0a
42               Built:        Tue Jun 23 17:56:00 UTC 2015
43               OS/Arch:      linux/amd64
44
45              Server:
46               Version:      1.8.0
47               API version:  1.20
48               Go version:   go1.4.2
49               Git commit:   f5bae0a
50               Built:        Tue Jun 23 17:56:00 UTC 2015
51               OS/Arch:      linux/amd64
52
53
54
55       Get server version:
56
57
58              $ docker version --format '{{.Server.Version}}'
59              1.8.0
60
61
62
63       Dump raw data:
64
65
66       To view all available fields, you can use the format {{json .}}.
67
68
69              $ docker version --format '{{json .}}'
70              {"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"}}
71
72
73
74

HISTORY

76       June 2014, updated by Sven Dowideit ⟨SvenDowideit@home.org.au⟩ June
77       2015, updated by John Howard ⟨jhoward@microsoft.com⟩ June 2015, updated
78       by Patrick Hemmer ⟨patrick.hemmer@gmail.com⟩
79
80
81
82Docker Community              Docker User Manuals                    DOCKER(1)
Impressum