Last active
July 7, 2020 04:04
-
-
Save ShinNoNoir/c975ddf862f38e19461f634653859bc2 to your computer and use it in GitHub Desktop.
Quick 'n Dirty script to fix Docker desktop startup issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on the steps listed here: https://github.com/docker/for-win/issues/6822#issuecomment-643563276 | |
gsv com.docker.service | spsv | |
wsl --shutdown | |
$ubuntu = (Get-AppPackage *Ubuntu20.04*) | |
$fam = $ubuntu.PackageFamilyName | |
explorer "shell:AppsFolder\$fam!ubuntu2004" | |
while ($true) { | |
$ubuntuproc = gps ubuntu2004 -ErrorAction SilentlyContinue | |
if ($ubuntuproc -ne $null) { break } | |
Start-Sleep -Milliseconds 200 | |
echo "waiting..." | |
} | |
# https://github.com/docker/for-win/issues/6822#issuecomment-643563276 | |
gsv com.docker.service | spsv | |
wsl --shutdown | |
$ubuntu = (Get-AppPackage *Ubuntu20.04*) | |
$fam = $ubuntu.PackageFamilyName | |
explorer "shell:AppsFolder\$fam!ubuntu2004" | |
while ($true) { | |
$ubuntuproc = gps ubuntu2004 -ErrorAction SilentlyContinue | |
if ($ubuntuproc -ne $null) { break } | |
Start-Sleep -Milliseconds 200 | |
echo "waiting..." | |
} | |
#gps ubuntu2004 | spps ubuntu2004 # TODO: Figure out how to properly close the Bash terminal | |
sasv com.docker.service | |
"C:\Program Files\Docker\Docker\Docker Desktop.exe" | |
sasv com.docker.service | |
"C:\Program Files\Docker\Docker\Docker Desktop.exe" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment