Docker - An error occurred - System.Security.Cryptography.CryptographicException

The error

When launching Docker Desktop on Windows 10, I had the error :

Paramètre incorrect.

   à System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
   à Docker.WPF.Credentials.MountCredentialAsker.DecryptPassword(Byte[] encrypted)
   à Docker.WPF.Credentials.MountCredentialAsker.RetrieveCredential(String target)
   à Docker.WPF.BackendClient.Start(ContainerEngineMode mode)
   à Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean withNotifications)
   à Docker.Actions.<>c__DisplayClass26_0.<StartAsync>b__0()
   à Docker.ApiServices.TaskQueuing.TaskQueue.<>c__DisplayClass18_0.<.ctor>b__1()

(message in french)

The fix

  • Go in the windows Credential Manager > Windows Credentials (in french Gestionnaire d'identification > Informations d'identification Windows)
  • Deleted the entry Docker Host Filesystem Access

This worked for me but it could be something else for you.


Here is what I tried before :

  • ‘Reset to factory defaults’ didn’t work.
  • Uninstall/Reinstall docker didn’t work.
  • Installing Docker ’edge’ didn’t work.
  • Windows update didn’t work.
  • Uninstall VirtualBox didn’t work.

After that I read more carefully the error message :) RetrieveCredential !!!! DecryptPassword !!!! I have changed my windows password 3 weeks ago !!!!

And I should have search/read the github issues more carefully ^_^

Discuss on Twitter