Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

error after docker uninstall

kill -force -processname 'Docker for Windows', com.docker.db, vpnkit, com.docker.proxy, com.docker.9pdb, moby-diag-dl, dockerd

try {
    ./MobyLinux.ps1 -Destroy
} Catch {}

$service = Get-WmiObject -Class Win32_Service -Filter "Name='com.docker.service'"
if ($service) { $service.StopService() }
if ($service) { $service.Delete() }
Start-Sleep -s 5
Remove-Item -Recurse -Force "~/AppData/Local/Docker"
Remove-Item -Recurse -Force "~/AppData/Roaming/Docker"
if (Test-Path "C:ProgramDataDocker") { takeown.exe /F "C:ProgramDataDocker" /R /A /D Y }
if (Test-Path "C:ProgramDataDocker") { icacls "C:ProgramDataDocker" /T /C /grant Administrators:F }
Remove-Item -Recurse -Force "C:ProgramDataDocker"
Remove-Item -Recurse -Force "C:Program FilesDocker"
Remove-Item -Recurse -Force "C:ProgramDataMicrosoftWindowsStart MenuProgramsDocker"
Remove-Item -Force "C:UsersPublicDesktopDocker for Windows.lnk"
Get-ChildItem HKLM:softwaremicrosoftwindowscurrentversionuninstall | % {Get-ItemProperty $_.PSPath}  | ? { $_.DisplayName -eq "Docker" } | Remove-Item -Recurse -Force
Get-ChildItem HKLM:softwareclassesinstallerproducts | % {Get-ItemProperty $_.pspath} | ? { $_.ProductName -eq "Docker" } | Remove-Item -Recurse -Force
Get-Item 'HKLM:softwareDocker Inc.' | Remove-Item -Recurse -Force
Get-ItemProperty HKCU:softwaremicrosoftwindowscurrentversionRun -name "Docker for Windows" | Remove-Item -Recurse -Force
#Get-ItemProperty HKCU:softwaremicrosoftwindowscurrentversionUFHSHC | ForEach-Object {Get-ItemProperty $_.PSPath} | Where-Object { $_.ToString().Contains("Docker for Windows.exe") } | Remove-Item -Recurse -Force $_.PSPath
#Get-ItemProperty HKCU:softwaremicrosoftwindowscurrentversionUFHSHC | Where-Object { $(Get-ItemPropertyValue $_) -Contains "Docker" }
Comment

PREVIOUS NEXT
Code Example
Shell :: how to check the parent branch in git 
Shell :: git reflog 
Shell :: crontab only working days 
Shell :: install wireshark ubuntu 
Shell :: how to uninstall a package installed using homebrew 
Shell :: git change commit id email 
Shell :: zsh fzf plugin 
Shell :: how to install a app from adb 
Shell :: files tar.gz 
Shell :: git add git commit 
Shell :: bash rename file 
Shell :: yum install package with version 
Shell :: install storybook react 
Shell :: enable rdp windows 10 powershell 
Shell :: minikube start with docker driver 
Shell :: install extension pgcrypto 
Shell :: set global git ignore 
Shell :: clear error log apache2 
Shell :: spyder 4.2.5 requires pyqt5<5.13, but you have pyqt5 5.15.4 which is incompatible. 
Shell :: mpeg-4 aac decoder h.264 decoder for ubuntu download 
Shell :: expo channels list 
Shell :: remove app with snap 
Shell :: git push specific ssh key 
Shell :: useful git commands 
Shell :: git new branch push to remote 
Shell :: zsh command not found nvm mac 
Shell :: zoom gedit 
Shell :: how to install pip flask on macos 
Shell :: composer install ubuntu 20.04 
Shell :: find text pattern in file linux 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =