I mounted /var/run/docker.sock on container to be able to run docker commands from inside the container. But i started getting the error the below error when i run, ‘sudo docker ps’
Cannot connect to the Docker daemon. Is ‘docker -d’ running on this host?
docker version: 18.09.1
Any help on how to debug this?