Home > Operation and Maintenance > Docker > How to completely uninstall docker in win10

How to completely uninstall docker in win10

PHPz
Release: 2023-04-04 09:45:32
Original
9002 people have browsed it

In the current era, Docker is an open source containerization platform, which is widely used in software development, deployment, testing and other aspects. But sometimes we need to remove it completely for various reasons. However, uninstalling Docker is not as simple and obvious as other software. This article will introduce how to completely and correctly uninstall Docker.

1. Windows 10 default method

  1. Open the Windows menu;
  2. Enter "Apps & features" in the search bar, and then select "Apps & features";
  3. After finding Docker, select it and click "Uninstall";
  4. When the uninstall process is completed, restart the computer.

This method can simply uninstall Docker, but it cannot be completely deleted. The remaining files and configurations left behind may have an impact on the system.

2. Use the PowerShell command

  1. Open "PowerShell (Administrator)";
  2. Execute the following command:
Get-Service *docker* | Stop-Service
Copy after login
Get-Service *docker* | Remove-Service
Copy after login
sc.exe delete docker
Copy after login
  1. Execute the following command:
Get-AppxPackage -Name Docker.Docker* | Remove-AppxPackage
Copy after login
  1. Delete the Docker directory and its files;
  2. Restart the computer.

3. Manual uninstall

  1. Terminate the Docker service

Find the Docker service in the task manager and terminate all its related processes .

  1. Delete Docker directory

Search and delete the following folders:

%ProgramFiles%\Docker\
Copy after login
%ProgramData%\Docker
Copy after login
%UserProfile%\.docker
Copy after login
  1. Delete Docker related registry

Search and delete all Docker related keys in the registry.

Note: Be careful when deleting the registry.

4. Use Third-Party uninstall software

Third-party uninstall software can automatically scan and uninstall Docker, such as: IObit Uninstaller, Geek Uninstaller, etc. These tools can effectively scan and delete the residual garbage generated by Docker, but they also need to be used and operated with caution.

Summary

In Windows systems, uninstalling Docker is not as simple and visible as other software, but it can be completed effectively using PowerShell commands, manual uninstallation, Third-Party uninstallation software, etc. There are no absolutes in everything. Choose the most suitable method according to your own needs and abilities to achieve the purpose of completely uninstalling Docker.

The above is the detailed content of How to completely uninstall docker in win10. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template