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
177650

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 ~]#

 

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Linux

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join