Open Docker from start menu in Windows
Tell us about your request Currently, when I close the Docker Desktop app on Windows (but let it run in the background), I have to click the system tray icon to open it up again. Searching for "Docker Desktop" on Windows and clicking on the app icon does not open it again; instead it does nothing.
Which service(s) is this request for? Docker Desktop on Windows 10
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
It'd be nice to have this feature since I often press the Win key on my keyboard, type the app name that I want to open and then press enter. This way, I don't have to move my mouse to open an app.
Are you currently working around the issue? The current workaround is to open Docker Desktop again from the system tray icon.
Version Docker Desktop 4.40.0 (187762)
You can create a small PowerShell script that forces Docker Desktop to show:
$process = Get-Process "Docker Desktop" -ErrorAction SilentlyContinue
if ($process) {
# If Docker is running, bring it to front
Add-Type -TypeDefinition 'using System; using System.Runtime.InteropServices; public class Win32 { [DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); [DllImport("user32.dll")] public static extern bool SetForegroundWindow(IntPtr hWnd); }'
[Win32]::ShowWindow($process.MainWindowHandle, 9)
[Win32]::SetForegroundWindow($process.MainWindowHandle)
} else {
# If not running, start it
Start-Process "Docker Desktop"
}
Save this as docker-show.ps1 and create a shortcut to it in your Start Menu.