gitlab runner Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running? code example

Example 1: ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

open the terminal and type sudo dockerd and leave it open
open new terminal and type sudo docker-compose up -d or sudo docker-compose build

Example 2: Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?

Nothing works!!! Just install Linux directly on your system

Tags:

Misc Example