EN
Linux - Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
6 points
Problem with docker:
xxxxxxxxxx
1
[root@localhost ~]# docker ps
2
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Fix for this problem:
Execute below command to start docker after you rebooted your linux.
xxxxxxxxxx
1
$ systemctl start docker
Practical example:
xxxxxxxxxx
1
[root@localhost ~]# systemctl start docker
2
[root@localhost ~]# docker ps
3
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4
4c01db0b339c ubuntu:12.04 bash 28 seconds ago Up 27 seconds 3300-3310/tcp webapp
5
[root@localhost ~]#