1: Use sudo apt-get remove docker to uninstall the prompt as follows, docker cannot be uninstalled because it is not followed
2: Check the docker version again, it is still there
3: The reason is that the docker-ce version is installed during installation , so docker-ce should also be uninstalled when uninstalling, as shown below
Executed: sudo apt-get remove docker-ce and then check the docker version again to find that the uninstallation was successful
Original address https://www.cnblogs.com/wxjnew/p/8024271.html