docker version查看docker版本是没有显示Server version是多少版本

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_31279347/article/details/84703317

查看docker版本时显示如下:

[root@VM_0_15_centos ~]# docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Get http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

发现并没有service版本,出现此问题是因为docker没有启动,启动后再次查看版本即可出现。

[root@VM_0_15_centos ~]# service docker start
Starting docker:	                                   [确定]
[root@VM_0_15_centos ~]# docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d/1.7.1
OS/Arch (server): linux/amd64

猜你喜欢

转载自blog.csdn.net/qq_31279347/article/details/84703317