github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/man/src/version.md (about) 1 This command displays version information for both the Docker client and 2 daemon. 3 4 # EXAMPLES 5 6 ## Display Docker version information 7 8 The default output: 9 10 $ docker version 11 Client: 12 Version: 1.8.0 13 API version: 1.20 14 Go version: go1.4.2 15 Git commit: f5bae0a 16 Built: Tue Jun 23 17:56:00 UTC 2015 17 OS/Arch: linux/amd64 18 19 Server: 20 Version: 1.8.0 21 API version: 1.20 22 Go version: go1.4.2 23 Git commit: f5bae0a 24 Built: Tue Jun 23 17:56:00 UTC 2015 25 OS/Arch: linux/amd64 26 27 Get server version: 28 29 $ docker version --format '{{.Server.Version}}' 30 1.8.0 31 32 Dump raw data: 33 34 To view all available fields, you can use the format `{{json .}}`. 35 36 $ docker version --format '{{json .}}' 37 {"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"}}