| This command displays version information for both the Docker client and |
| ## Display Docker version information |
| Built: Tue Jun 23 17:56:00 UTC 2015 |
| Built: Tue Jun 23 17:56:00 UTC 2015 |
| $ docker version --format '{{.Server.Version}}' |
| 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"}} |