github.com/slava-ustovytski/docker@v1.8.2-rc1/man/docker-version.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % JUNE 2015
     4  # NAME
     5  docker-version - Show the Docker version information.
     6  
     7  # SYNOPSIS
     8  **docker version**
     9  [**--help**]
    10  [**-f**|**--format**[=*FORMAT*]]
    11  
    12  # DESCRIPTION
    13  This command displays version information for both the Docker client and 
    14  daemon. 
    15  
    16  # OPTIONS
    17  **--help**
    18      Print usage statement
    19  
    20  **-f**, **--format**=""
    21      Format the output using the given go template.
    22  
    23  # EXAMPLES
    24  
    25  ## Display Docker version information
    26  
    27  The default output:
    28  
    29      $ docker version
    30  	Client:
    31  	 Version:      1.8.0
    32  	 API version:  1.20
    33  	 Go version:   go1.4.2
    34  	 Git commit:   f5bae0a
    35  	 Built:        Tue Jun 23 17:56:00 UTC 2015
    36  	 OS/Arch:      linux/amd64
    37  
    38  	Server:
    39  	 Version:      1.8.0
    40  	 API version:  1.20
    41  	 Go version:   go1.4.2
    42  	 Git commit:   f5bae0a
    43  	 Built:        Tue Jun 23 17:56:00 UTC 2015
    44  	 OS/Arch:      linux/amd64
    45  
    46  Get server version:
    47  
    48      $ docker version --format '{{.Server.Version}}'
    49  	1.8.0
    50  
    51  Dump raw data:
    52  
    53  To view all available fields, you can use the format `{{json .}}`.
    54  
    55      $ docker version --format '{{json .}}'
    56      {"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"}}
    57  
    58  	
    59  # HISTORY
    60  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
    61  June 2015, updated by John Howard <jhoward@microsoft.com>
    62  June 2015, updated by Patrick Hemmer <patrick.hemmer@gmail.com