sudo systemctl stop docker.service docker.socket
sudo systemctl disable docker.service docker.socket
sudo apt-get purge -y docker-ce docker-ce-cli docker-ce-rootless-extras docker-compose-plugin docker-buildx-plugin
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
sudo rm -rf /etc/docker
sudo rm -rf ~/.docker
sudo rm -f /usr/bin/docker /usr/local/bin/docker

hash -rsudo rm -rf /data/docker
docker --version