Cannot uninstall Docker for Windows

Sorry for the delay. I tried to reproduce this bug without success, so I wrote a script that will be ship in the next version but as you cannot uninstall, I dump here the procedure so you can install the latest version.

Open a powershell as administrator and copy/paste this script:

‘C:\Program Files\Docker\Docker\resources\MobyLinux.ps1’ -Destroy
$service = Get-WmiObject -Class Win32_Service -Filter “Name=‘com.docker.service’”
$service.StopService()
$service.Delete()
Start-Sleep -s 5
Remove-Item -Recurse -Force “~/AppData/Local/Docker”
Remove-Item -Recurse -Force “~/AppData/Roaming/Docker”
takeown.exe /F “C:\ProgramData\Docker” /R /A /D Y
icacls “C:\ProgramData\Docker” /T /C /grant Administrators:F
Remove-Item -Recurse -Force “C:\ProgramData\Docker”
Remove-Item -Recurse -Force “C:\Program Files\Docker”
Remove-Item -Recurse -Force “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Docker”
Remove-Item -Force “C:\Users\Public\Desktop\Docker for Windows.lnk”
Get-ChildItem hklm:\software\microsoft\windows\currentversion\uninstall | ForEach-Object {Get-ItemProperty $.PSPath} | Where-Object { $.DisplayName -eq “Docker” } | Remove-Item -Recurse -Force
Get-ChildItem hklm:\software\classes\installer\products | ForEach-Object {Get-ItemProperty $.pspath} | Where-Object { $.ProductName -eq “Docker” } | Remove-Item -Recurse -Force
Get-Item ‘HKLM:\software\Docker Inc.’ | Remove-Item -Recurse -Force
Get-ItemProperty -path HKCU:\software\microsoft\windows\currentversion\Run -name “Docker for Windows” | Remove-Item -Recurse -Force

And go to docker for windows page to install the lastest version, stable is 1.12.0 and beta is the same with experimental features enabled.