美文网首页
docker version

docker version

作者: 黑客不黑_ | 来源:发表于2019-04-28 11:25 被阅读0次
    • 用法:
    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"}}
    

    相关文章

      网友评论

          本文标题:docker version

          本文链接:https://www.haomeiwen.com/subject/alqdnqtx.html