Tag Archives: Docker

FATA[0000] Get http:///var/run/docker.sock/v1.18/version: dial unix /var/run/docker.sock

What environments do I have?

  • CentOS 7
  • kernel 3.10
  • docker 1.6.0 from EPEL7

What is the issue with Docker?

After installing Docker, I tried to check the version of installed Docker. However, somehow I got some error like this.

$ docker version
Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 8aae715/1.6.0
OS/Arch (client): linux/amd64
FATA[0000] Get http:///var/run/docker.sock/v1.18/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

What should be checked?

First, restart or start Docker daemon.


service docker restart

or if you don’t have service command, you can probably do this way.


/etc/init.d/docker restart

Check Docker version again

you might see the same error again. If not, then you don’t need to read any further. If you see the error again, then you need to check if you have enough privilege to make a file under /var/run/ directory. The simplest way of dealing with this issue is using sudo.


FATA[0000] Get http:///var/run/docker.sock/v1.18/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

If you run “docker version” command again with sudo, you should be ok. If you don’t see any error with sudo, then use docker command with sudo all the time.


$ sudo docker version
Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 8aae715/1.6.0
OS/Arch (client): linux/amd64
Server version: 1.6.0
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 8aae715/1.6.0
OS/Arch (server): linux/amd64

There is another convenient Docker command “info”

$ sudo docker info
Containers: 5
Images: 6
Storage Driver: devicemapper
 Pool Name: docker-8:20-1613601107-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 1.455 GB
 Data Space Total: 107.4 GB
 Data Space Available: 105.9 GB
 Metadata Space Used: 1.753 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.146 GB
 Udev Sync Supported: true
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.93-RHEL7 (2015-01-28)
Execution Driver: native-0.2
Kernel Version: 3.10.0-229.4.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
CPUs: 4
Total Memory: 11.62 GiB
Name: localhost
ID: RT3Z:MSJT:GELR:3FJ2:NTBW:TJXS:RN2A:ZXGE:U6DE:NYHN:FUWO:SUX5