Verify Docker Uninstall: Quick Guide
To verify that Docker has been successfully uninstalled, you can follow these steps:
- Run the following command in the terminal to verify if Docker has been successfully uninstalled:
docker -v
If successfully uninstalled, the terminal will display a message similar to the following:
command not found: docker
- Check to see if Docker-related services have been stopped.
sudo systemctl status docker
If the Docker service has stopped and is showing a status of “inactive” or “dead”, it means that Docker has been successfully uninstalled.
- Ensure that Docker-related files and directories have been removed. You can use the following command to check:
ls /var/lib/docker
ls /etc/docker
ls /etc/systemd/system/docker.service.d
If the above directories and files have been deleted, it means Docker has been successfully uninstalled.
By following these steps, you can confirm whether Docker has been successfully uninstalled. If you have any questions, you can refer to the relevant documentation or seek help from the community.