docker version [OPTIONS]
Name, shorthand |
Default |
Description |
--format , -f |
|
Format the output using the given Go template |
--kubeconfig |
|
Kubernetes Kubernetes config file |
[root@bogon ~]# docker version
Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-94.gitb2f74b2.el7.centos.x86_64
Go version: go1.10.3
Git commit: b2f74b2/1.13.1
Built: Tue Mar 12 10:27:24 2019
OS/Arch: linux/amd64
Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-94.gitb2f74b2.el7.centos.x86_64
Go version: go1.10.3
Git commit: b2f74b2/1.13.1
Built: Tue Mar 12 10:27:24 2019
OS/Arch: linux/amd64
Experimental: false
[root@bogon ~]# docker -v
Docker version 1.13.1, build b2f74b2/1.13.1
[root@bogon ~]# docker --version
Docker version 1.13.1, build b2f74b2/1.13.1
[root@bogon ~]# docker version --format '{{.Server.Version}}'
1.13.1
[root@bogon ~]# docker version --format '{{.Client.Version}}'
1.13.1
[root@bogon ~]# docker version --format '{{json .}}'
{"Client":{"Version":"1.13.1","ApiVersion":"1.26","GitCommit":"b2f74b2/1.13.1","GoVersion":"go1.10.3","Os":"linux","Arch":"amd64","BuildTime":"Tue Mar 12 10:27:24 2019","PkgVersion":"docker-1.13.1-94.gitb2f74b2.el7.centos.x86_64"},"Server":{"Version":"1.13.1","ApiVersion":"1.26","MinAPIVersion":"1.12","GitCommit":"b2f74b2/1.13.1","GoVersion":"go1.10.3","Os":"linux","Arch":"amd64","KernelVersion":"3.10.0-862.el7.x86_64","BuildTime":"Tue Mar 12 10:27:24 2019","PkgVersion":"docker-1.13.1-94.gitb2f74b2.el7.centos.x86_64"}}
网友评论