{"slug": "nuke-docker-from-orbit", "title": "Nuke Docker from Orbit", "summary": "The article provides a series of commands to completely remove Docker and all its associated data, containers, images, and clusters from a Linux system. It warns that verifying the Docker root directory is dangerous and should not be included in the removal command. The steps include stopping Docker, deleting its data directory, and cleaning up all containers, images, and Kind clusters.", "body_md": "You can double-check the docker data directory with this, but I considered too dangerous to include in the rm -rf\ncommand.\ndocker info | grep 'Docker Root Dir' | grep -oE '/.*'\nsudo systemctl stop docker\nsudo rm -rf /var/lib/docker\nsudo systemctl start docker\ndocker rm -f $(docker ps -aq)\ndocker rmi -f $(docker images -aq)\ndocker system prune -af\ndocker ps -f \"status=exited\"\ndocker rm -f $(docker ps -f \"status=exited\" -q)\nkind get clusters | xargs -t -n1 kind delete cluster --name", "url": "https://wpnews.pro/news/nuke-docker-from-orbit", "canonical_source": "https://gist.github.com/webern/de521dbb46e10920052eb29085cf5146", "published_at": "2021-10-04 18:53:50+00:00", "updated_at": "2026-05-22 22:05:33.465439+00:00", "lang": "en", "topics": ["developer-tools", "cloud-computing"], "entities": ["Docker", "Kind"], "alternates": {"html": "https://wpnews.pro/news/nuke-docker-from-orbit", "markdown": "https://wpnews.pro/news/nuke-docker-from-orbit.md", "text": "https://wpnews.pro/news/nuke-docker-from-orbit.txt", "jsonld": "https://wpnews.pro/news/nuke-docker-from-orbit.jsonld"}}