79120610

Date: 2024-10-24 06:30:36
Score: 1
Natty:
Report link

Uninstall Docker on Windows Server

Uninstall-Package and Uninstall-Module cmdlets to remove the Docker module use the below command :

Uninstall-Package -Name docker -ProviderName DockerMsftProvider Uninstall-Module -Name DockerMsftProvider

Next Clean up Docker data and system components use the below command:

Get-HNSNetwork | Remove-HNSNetwork

*Then remove Docker's default networks on Windows Server use the below command:

Get-ContainerNetwork | Remove-ContainerNetwork

Finally, remove Docker's program data from your system use the below command:

Remove-Item "C:\ProgramData\Docker" -Recurse

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sheik