Docker Community Forums

Share and learn in the Docker community.

Remove Docker on Windows Server 2016 Standard

One of my Windows 2016 Server (Standard Edition) has docker installed. I don’t see Docker Desktop though installed in Add/Remove Programs so I am wondering how to remove it!

In this blog post, I’ll show you how to uninstall Docker from Windows Server 2016 Container host using PowerShell.

In my case, I need to uninstall Docker from my Windows Server 2016 Version 1709 and install the Docker Enterprise preview edition.

I’ll also show in this article how to Install a specific Docker Version on Windows Server 2016 Container Host.

To Install it, I’ll need to first remove Docker completely from the Container Host.

GET STARTED
To complete this step, I’ll need to run two cmdlets that will Install the DockerProvider Module and the Docker Package.

At the end of the process, I’ll restart my Container Host.

Uninstall Docker Module And Package

The first step In the process Is to uninstall the Docker Module called DockerProvider using the PowerShell cmdlet below:

Uninstall-Module dockerprovider
Once completed, I’ll move to the next cmdlet to remove the Docker package

Uninstall-package docker

See this is the issue. Most guides I see indicate to uninstall the modules but when I run the following it indicates the module is not installed:

PS C:\Windows\system32> Uninstall-Module dockerprovider
PackageManagement\Uninstall-Package : No match was found for the specified search criteria and module names
‘dockerprovider’.
At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2157 char:21
+ … $null = PackageManagement\Uninstall-Package @PSBoundParameters
*+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*

    • CategoryInfo : ObjectNotFound: (Microsoft.Power…ninstallPackage:UninstallPackage) [Uninstall-Package]*
  • , Exception*
    • FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage*

The docker version is as follows:

PS C:\Windows\system32> docker version
Client: Mirantis Container Runtime

  • Version: 19.03.14*
  • API version: 1.40*
  • Go version: go1.13.15*
  • Git commit: e820475*
  • Built: 12/17/2020 19:30:16*
  • OS/Arch: windows/amd64*
  • Experimental: false*

Server: Mirantis Container Runtime

  • Engine:*
  • Version: 19.03.14*
  • API version: 1.40 (minimum version 1.24)*
  • Go version: go1.13.15*
  • Git commit: 57e3a05525*
  • Built: 12/17/2020 19:29:00*
  • OS/Arch: windows/amd64*
  • Experimental: false*