Uninstall Docker from Windows Server 2022

Hi everyone, I am new in docker and today tried to install it on Windows Server 2022. I think I did all by instructions, but after finishing the installation I couldn’t find docker folder in the Program Files folder. I tried to look for docker.exe and I found it in System32 folder. I can see that Docker Engine service is up and running in Services. When I run dotnet version command then I got the response saying that the installed version is 24.0.5. Can you help me to completely uninstall the docker from my server so I will try to reinstall it again? I tried the instructions mentioned here but getting the following error.

Uninstall-Package -Name docker -ProviderName DockerMsftProvider
Uninstall-Package : Unable to find package providers (DockerMsftProvider).
At line:1 char:1

  • Uninstall-Package -Name docker -ProviderName DockerMsftProvider
  •   + CategoryInfo          : InvalidArgument: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package
     ], Exception
      + FullyQualifiedErrorId : UnknownProviders,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage

I’m having the exact same problem. Documentation is old like Server 2016 old. I believe DockerMsftProvider is deprecated.

In case you got a notification about my previous post, I deleted it, because I relized how stupid I was not recognizing the question was not about Docker Desktop :slight_smile:

Unfotunately I’m not a Windows server user so I can’t tell you how uninstallation should work. Have you tried to ask Microsoft or the Microsoft community?

I only found this, which I am sure you have already found

https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon#how-to-uninstall-docker