docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.86k stars 291 forks source link

Powershell execution policy preventing starting docker desktop after update #4426

Closed annemarte closed 5 years ago

annemarte commented 5 years ago

Error message: "Unable to stop ved Docker.Core.Pipe.NamedPipeClient.d5.MoveNext() --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt --- ved System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ved Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) ved Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) ved Docker.Actions.<>cDisplayClass24_0.b0() ved Docker.ApiServices.TaskQueuing.TaskQueue.<>cDisplayClass17_0.<.ctor>b__1() "

Expected behavior

Docker to start

Actual behavior

Doesn't start

Information

After changing memory settings on older version, and getting an error, I updated to the newest version. I've tried reset to factory defaults several times.

Steps to reproduce the behavior

  1. ...
  2. ...
wirdehall commented 5 years ago

I have the exact same issue, returned from vacation today and started to work, at lunch time I decided to run the update to 2.1.0.0. And since then I havn't been able to start Docker for windows. I tried rebooting the program as administrator and restarting windows multiple times. I even tried to uninstall and reinstall docker but no dice.

Diagnostic id: 75F5AD22-9438-43DD-9DD2-08062B7B3D18/20190805121116

annemarte commented 5 years ago

Seems there's a corporate policy that is stopping unsigned powershell scripts to run. They have to add it to a policy which make take a while.

wirdehall commented 5 years ago

Thank you @annemarte, I have no reverted to the old version of Docker for windows until this can be resolved.

WayneHiller commented 5 years ago

I am having the same issue with a different error.

System.NullReferenceException: Object reference not set to an instance of an object. at Docker.ApiServices.ClientConfig.DockerLoginSync.CredentialChanged(String registryUrl, Credential cred) at Docker.ApiServices.Registries.DockerHub.d18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Docker.ApiServices.Registries.DockerHub.d17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

RundaScath commented 5 years ago

I too am getting an error at startup for windows 10, but i cannot make heads or tail of the error being produced

2019-08-05T15:36:57Z docker + STORAGE_DRIVER_OPTS= 2019-08-05T15:36:57Z docker + jq -e '."storage-driver"' /run/config/docker/daemon.json 2019-08-05T15:36:57Z docker + : 2019-08-05T15:36:57Z docker + sleep 1 2019-08-05T15:36:57Z docker + '[' -d /var/lib/docker/aufs ] 2019-08-05T15:36:57Z docker + '[' -f /run/config/docker/redirect-logs ] 2019-08-05T15:36:57Z docker + /usr/local/bin/dockerd -H unix:///var/run/docker.sock --config-file /run/config/docker/daemon.json '--swarm-default-advertise-addr=eth0' --userland-proxy-path /usr/bin/vpnkit-expose-port 2019-08-05T15:36:58Z docker unable to configure the Docker daemon with file /run/config/docker/daemon.json: the following directives don't match any configuration option: disable-legacy-registry 2019-08-05T15:36:58Z docker + failed_to_start 2019-08-05T15:36:58Z docker + tail /var/log/docker.log at Docker.Core.Pipe.NamedPipeClient.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) at Docker.Actions.<>cDisplayClass24_0.b0() at Docker.ApiServices.TaskQueuing.TaskQueue.<>cDisplayClass17_0.<.ctor>b__1()

leifan78 commented 5 years ago

Same issue here:

Unable to create at Docker.Core.Pipe.NamedPipeClient.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) at Docker.Actions.<>cDisplayClass24_0.b0() at Docker.ApiServices.TaskQueuing.TaskQueue.<>cDisplayClass17_0.<.ctor>b__1()

plantusd commented 5 years ago

The same issue

mikeparker commented 5 years ago

Duplicate of https://github.com/docker/for-win/issues/4376 This is fixed and will be released shortly.

mikeparker commented 5 years ago

Docker Desktop 2.1.0.1 stable has been released with a fix for this now.

WayneHiller commented 5 years ago

After updating Docker now tries to start and then terminates. This error is in the event log.

Application: Docker Desktop.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.NullReferenceException at Docker.WPF.DaemonSettings..ctor(Docker.ApiServices.Actions.IActions, Docker.Core.Mediator`1, Docker.ApiServices.Analytics.IAnalytics, Docker.Core.IEdition, Docker.ApiServices.DaemonOpts.IDaemonOptionsLoader, Docker.Core.IEnterpriseConfigurationFileLoader, Docker.Core.Cli.ICliOptionsLoader)

Exception Info: System.Reflection.TargetInvocationException at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean) at System.Reflection.RuntimeConstructorInfo.Invoke(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo) at Docker.Core.Di.Singletons.NewInstance(System.Type, Int32)

Exception Info: System.ArgumentException at Docker.Core.Di.Singletons.NewInstance(System.Type, Int32) at Docker.Core.Di.Singletons.Get(System.Type, Int32) at Docker.Core.Di.Singletons.Get[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]() at Docker.WPF.SettingsWindow.InstallPanes(Docker.Core.ContainerEngineMode) at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) at System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject, System.Windows.RoutedEvent) at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(System.Object) at MS.Internal.LoadedOrUnloadedOperation.DoWork() at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object) at System.Windows.Media.MediaContext.RenderMessageHandler(System.Object) at System.Windows.Interop.HwndTarget.OnResize() at System.Windows.Interop.HwndTarget.HandleMessage(MS.Internal.Interop.WindowMessage, IntPtr, IntPtr) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

HaimRozen commented 5 years ago

Same issue on version: 2.1.0.1 (37199) Exception I get on startup: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at Docker.ApiServices.ClientConfig.DockerLoginSync.CredentialChanged(String registryUrl, Credential cred) at Docker.ApiServices.Registries.DockerHub.d18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Docker.ApiServices.Registries.DockerHub.d17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

Docker Desktop Assembly Version: 2.1.0.37199 Win32 Version: 2.1.0.37199 CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker%20Desktop.exe

Docker.Core Assembly Version: 2.1.0.37199 Win32 Version: 2.1.0.37199 CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker.Core.DLL

Docker.WPF Assembly Version: 2.1.0.37199 Win32 Version: 2.1.0.37199 CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker.WPF.DLL

PresentationFramework Assembly Version: 4.0.0.0 Win32 Version: 4.8.3815.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll

WindowsBase Assembly Version: 4.0.0.0 Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System Assembly Version: 4.0.0.0 Win32 Version: 4.8.3801.0 built by: NET48REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

PresentationCore Assembly Version: 4.0.0.0 Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll

System.Xaml Assembly Version: 4.0.0.0 Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll

Docker.ApiServices Assembly Version: 2.1.0.37199 Win32 Version: 2.1.0.37199 CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker.ApiServices.DLL

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

NLog Assembly Version: 4.0.0.0 Win32 Version: 4.5.10.8381 CodeBase: file:///C:/Program%20Files/Docker/Docker/NLog.DLL

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Newtonsoft.Json Assembly Version: 11.0.0.0 Win32 Version: 11.0.2.21924 CodeBase: file:///C:/Program%20Files/Docker/Docker/Newtonsoft.Json.DLL

System.Numerics Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Runtime.Serialization Assembly Version: 4.0.0.0 Win32 Version: 4.8.3825.0 built by: NET48REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

System.ServiceModel Assembly Version: 4.0.0.0 Win32 Version: 4.8.3825.0 built by: NET48REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll

Docker.Backend Assembly Version: 2.1.0.37199 Win32 Version: 2.1.0.37199 CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker.Backend.DLL

Microsoft.Toolkit.Uwp.Notifications Assembly Version: 1.5.1.0 Win32 Version: 1.5.1.0 CodeBase: file:///C:/Program%20Files/Docker/Docker/Microsoft.Toolkit.Uwp.Notifications.DLL

System.Runtime Assembly Version: 4.1.2.0 Win32 Version: 4.6.25714.01 CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Runtime.DLL

netstandard Assembly Version: 2.0.0.0 Win32 Version: 4.8.3752.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/netstandard/v4.0_2.0.0.0__cc7b13ffcd2ddd51/netstandard.dll

Windows.UI Assembly Version: 255.255.255.255 Win32 Version: 10.0.10011.16384 CodeBase: file:///C:/WINDOWS/system32/WinMetadata/Windows.UI.winmd

Windows.Foundation Assembly Version: 255.255.255.255 Win32 Version: 10.0.10011.16384 CodeBase: file:///C:/WINDOWS/system32/WinMetadata/Windows.Foundation.winmd

System.Runtime.InteropServices.WindowsRuntime Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.InteropServices.WindowsRuntime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.WindowsRuntime.dll

Windows.Data Assembly Version: 255.255.255.255 Win32 Version: 10.0.10011.16384 CodeBase: file:///C:/WINDOWS/system32/WinMetadata/Windows.Data.winmd

System.ValueTuple Assembly Version: 4.0.3.0 Win32 Version: 4.6.26515.06 CodeBase: file:///C:/Program%20Files/Docker/Docker/System.ValueTuple.DLL

System.Collections Assembly Version: 4.0.11.0 Win32 Version: 4.6.25714.01 CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Collections.DLL

Docker.Win32Helpers Assembly Version: 1.0.7158.28135 Win32 Version: CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker.Win32Helpers.DLL

System.Net.Http Assembly Version: 4.2.0.0 Win32 Version: 4.6.26011.01 CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Net.Http.DLL

System.Management.Automation Assembly Version: 3.0.0.0 Win32 Version: 10.0.18362.145 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management.Automation/v4.0_3.0.0.0__31bf3856ad364e35/System.Management.Automation.dll

PresentationFramework.Aero2 Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll

System.Resources.ResourceManager Assembly Version: 4.0.1.0 Win32 Version: 4.6.25714.01 CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Resources.ResourceManager.DLL

WindowsFormsIntegration Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll

System.Web.Http Assembly Version: 5.2.7.0 Win32 Version: 5.2.61128.0 CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Web.Http.DLL

Docker.HttpApi Assembly Version: 2.1.0.37199 Win32 Version: 2.1.0.37199 CodeBase: file:///C:/Program%20Files/Docker/Docker/Docker.HttpApi.DLL

Microsoft.Owin Assembly Version: 4.0.1.0 Win32 Version: 4.0.80118.116 CodeBase: file:///C:/Program%20Files/Docker/Docker/Microsoft.Owin.DLL

Owin Assembly Version: 1.0.0.0 Win32 Version: 1.0 CodeBase: file:///C:/Program%20Files/Docker/Docker/Owin.DLL

System.Security Assembly Version: 4.0.0.0 Win32 Version: 4.8.3752.0 built by: NET48REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

HttpOverStream.NamedPipe Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.NamedPipe.DLL

HttpOverStream Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.DLL

HttpOverStream.Server.Owin Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.Server.Owin.DLL

Microsoft.Owin.Hosting Assembly Version: 4.0.1.0 Win32 Version: 4.0.80118.116 CodeBase: file:///C:/Program%20Files/Docker/Docker/Microsoft.Owin.Hosting.DLL

Anonymously Hosted DynamicMethods Assembly Assembly Version: 0.0.0.0 Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll

System.Web.Http.Owin Assembly Version: 5.2.7.0 Win32 Version: 5.2.61128.0 CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Web.Http.Owin.DLL

System.Net.Http.Formatting Assembly Version: 5.2.7.0 Win32 Version: 5.2.61128.0 CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Net.Http.Formatting.DLL

SMDiagnostics Assembly Version: 4.0.0.0 Win32 Version: 4.8.3825.0 built by: NET48REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll

System.Threading.Tasks.Extensions Assembly Version: 4.2.0.0 Win32 Version: 4.6.26606.05 CodeBase: file:///C:/Program%20Files/Docker/Docker/System.Threading.Tasks.Extensions.DLL

HttpOverStream.Client Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files/Docker/Docker/HttpOverStream.Client.DLL

** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

WayneHiller commented 5 years ago

After updating to 2.1.0.1, I had to uninstall and the reinstall. All good now.

docker-robott commented 4 years ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked