xxxxxxxxxx
docker-machine ls
docker-machine kill docker_machine_name
xxxxxxxxxx
// this is useful if you installed docker using get-docker.sh
sudo rm /etc/apt/sources.list.d/docker.list
sudo rm /etc/apt/keyrings/docker.gpg
sudo apt remove docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin
sudo rm -rf /var/lib/docker
sudo apt autoremove