If you are unable to connect to Docker daemon and get the below error.
[sagacity@nunifidts110 run]$ docker stats
Cannot connect to the Docker daemon at unix:///var/run/docker.sock
Docker doesn't shut down cleanly.
Run the below commands and see to restart the docker.
Before performing the below command you should have proper root permissions.
systemctl start docker
systemctl enable docker
systemctl restart docker