How to check docker is running or not on Linux

In this article, we will see how to check docker is running or not on Linux.

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

We can find the docker engine is running or not using service, systemctl or simply running docker info/version command. We will find the docker using all these methods.

How to check docker is running or not on Linux

1. Just run docker info. This will show us docker is running or not.

docker info

How to check docker is running or not on Linux

2. We can also get docker information by checking process information.

ps -ef | grep docker

The above output is sayign its not started.

If it is started, output is like below.

3. We can also find the status of docker service using below commands.

sudo systemctl status docker

or

sudo service docker status

Leave a Reply

Your email address will not be published. Required fields are marked *