Check whether Docker is running :
- sudo service docker status .
- sudo service docker stop
- sudo service docker start
One liner to stop / remove all of Docker containers:
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Delete all images
- docker rmi $(docker images -q)