Run the following command:
sudo docker stop $(docker ps --all -q ) | docker rm $(docker ps -a -q)
Next, restart your computer and restart docker service using the following command:
sudo service docker start or systemctl start docker
this should solve your problem.