Languages
[Edit]
EN

Linux - Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

6 points
Created by:
Root-ssh
7497

Problem

Problem with docker:

[root@localhost ~]# docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Solution

Fix for this problem:

Execute below command to start docker after you rebooted your linux.

$ systemctl start docker

Practical example:

[root@localhost ~]# systemctl start docker
[root@localhost ~]# docker ps
CONTAINER ID        IMAGE                        COMMAND                CREATED              STATUS              PORTS               NAMES
4c01db0b339c        ubuntu:12.04                 bash                   28 seconds ago       Up 27 seconds       3300-3310/tcp       webapp
[root@localhost ~]#

 

Hey ūüĎč
Would you like to know what we do?
  • Dirask is online IT community for professionals and hobbyist to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.