How To Uninstall Docker

How To Articles

Uninstalling Docker may be necessary for various reasons, such as troubleshooting issues or switching to a different containerization platform. In this article, I’ll guide you through the steps to remove Docker from your system, sharing my personal insights along the way.

Uninstalling Docker on Windows

Uninstalling Docker on Windows involves multiple steps, including stopping running containers and removing Docker executables. To begin, I suggest ensuring that all containers are stopped and removed to prevent any interference with the uninstallation process. With Docker Desktop, you can achieve this by right-clicking the Docker icon in the system tray and selecting Settings, then Reset and finally Remove all data.

Next, I recommend using the Control Panel to uninstall Docker Desktop. Simply open the Control Panel, navigate to Programs, and click Uninstall a program. From the list of programs, locate Docker Desktop, right-click it, and select Uninstall/Change.

Uninstalling Docker on macOS

On macOS, uninstalling Docker involves removing the Docker application and its associated components. To start, ensure that all running containers are stopped. Then, open Finder and navigate to Applications. Locate Docker and drag it to the Trash. Additionally, I recommend removing the ~/.docker directory, which contains Docker’s configuration files and credentials.

Uninstalling Docker on Linux

Uninstalling Docker on Linux can be done via the package manager used for installation (e.g., apt for Ubuntu). First, stop and remove all running containers and images. Then, use the package manager to remove the Docker package. For example, on Ubuntu, you can run sudo apt-get purge docker-ce docker-ce-cli to remove Docker and its dependencies.


Uninstalling Docker involves more than just removing the application. It’s important to take into account any running containers, associated components, and configuration files to ensure a clean uninstallation. By following the steps outlined in this article, you can confidently remove Docker from your system, paving the way for a smooth transition if needed.