You can double-check the docker data directory with this, but I considered too dangerous to include in the rm -rf
command.
docker info | grep 'Docker Root Dir' | grep -oE '/.*'
sudo systemctl stop docker
sudo rm -rf /var/lib/docker
sudo systemctl start docker
docker rm -f $(docker ps -aq)
docker rmi -f $(docker images -aq)
docker system prune -af
docker ps -f "status=exited"
docker rm -f $(docker ps -f "status=exited" -q)
kind get clusters | xargs -t -n1 kind delete cluster --name