docker stop $(docker ps -a -q)
docker ps -a | grep 'weeks ago' | awk '{print $1}' | xargs --no-run-if-empty docker rm
docker volume rm $(docker volume ls -qf dangling=true)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
sudo service docker stop && sudo rm -rf /var/lib/docker && sudo service docker stop && sudo service docker start