docker version查看版本时没有显示Server是多少版本的原因

查看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
©️2020 CSDN 皮肤主题: 程序猿惹谁了 设计师:上身试试 返回首页