I am beginner to Docker. When i insert the following cmd it shows that it is stopped.
cmd: sudo service docker status
output: “docker stop/waiting”
But when i enter following command
cmd: docker version
lient version: 1.6.2
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
FATA Get http:///var/run/docker.sock/v1.18/version: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?
Previously i enter the following command to let the docker to listen to the port 2375
sudo docker -H tcp://0.0.0.0:2375 -d
Now I start the docker with “sudo service docker start” command and it gives the output "docker start/running, process 19408"
Now problem arises when I tried to run an ubuntu image using command “sudo docker --tlsverify=false run ubuntu”. It gives following output:
FATA Cannot connect to the Docker daemon. Is ‘docker -d’ running on this host?
I have tried searching many articles. But unable to restore docker to listen to the socket instead of tcp port.
Please help me.