Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active June 4, 2021 04:56
Show Gist options
  • Save guitarrapc/80eeeb46e4ebd353029db8569bd03fe8 to your computer and use it in GitHub Desktop.
Save guitarrapc/80eeeb46e4ebd353029db8569bd03fe8 to your computer and use it in GitHub Desktop.
get Docker Desktop for Windows version from cli
for /f "usebackq tokens=3*" %%A in (`reg query "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Docker Desktop" /V DisplayVersion`) do set DOCKER_DESKTOP_VERSION=%%A
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | select DisplayName,DisplayVersion | where {$_.DisplayName -like "Docker*"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment