Home > other >  docker: Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?
docker: Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?

Time:07-09

I am stuck on this error since yesterday. I am trying to run the command docker run hello-world on my Ubuntu bash but it keeps giving the same error. I don't understand what am I doing wrong.

enter image description here

My ~/.bashrc file also has the required environment variables.

enter image description here

enter image description here

CodePudding user response:

have you tried to add docker group etc. ? these are the required post installation steps:

sudo groupadd docker
sudo usermod -aG docker $USER

Log out and log back in so that your group membership is re-evaluated.

source: https://docs.docker.com/engine/install/linux-postinstall/

CodePudding user response:

So, I was able to fix it by commenting the line `export DOCKER_HOST='tcp://0.0.0.0:2375', according to this post WSL2 Cannot connect to the Docker daemon

  • Related