Windows 11, docker desktop fails to start after a restart of machine · Issue #12128 · docker/for-win (original) (raw)

Actual behavior

After my mahcine a restarted docker desktop doesn't start:
"Docker failed to initialize"

System.NullReferenceException:
Object reference not set to an instance of an object.
at Docker.Systray.Systray.ExitThreadCore() in C:\workspaces\PR-16319\src\github.com\docker\pinata\win\src\Docker.Desktop\Systray\Systray.cs:line 281
at System.Windows.Forms.Application.ThreadContext.ExitCommon(Boolean disposing)
at System.Windows.Forms.Application.ExitInternal()
at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.WndProcException(Exception e)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Docker.Program.Run(IReadOnlyCollection`1 args) in C:\workspaces\PR-16319\src\github.com\docker\pinata\win\src\Docker.Desktop\Program.cs:line 295

Expected behavior

docker starts without issue

Information

Steps to reproduce the behavior

  1. Install docker desktop
  2. Restart the machine
  3. Try and launch docker desktop