R. Boutte
R. Boutte

Reputation: 908

Docker error at startup : System.InvalidOperationException

Context

I'm on Windows 10 Entreprise, version 1909 (18363.1801) and I've done all available updates before next steps.

I've tried to install Docker Desktop 4.0.1 following these instructions. I've enabled WSL2 feature, I've installed the linux kernel update package, then I've installed Docker Desktop, following instructions here without any error.

My problem

When I try to start Docker Desktop, I accept the terms, then an error occurs :

System.InvalidOperationException: Failed to set version to docker-desktop: exit code: -1
stdout: Paramètres de console non pris en charge. Pour pouvoir utiliser cette fonctionnalité, la console héritée doit être désactivée.

Full stacktrace here

Did I've missed something during installation ? What should I do to be able to use Docker Desktop ?

I've tried to uninstall then install again Docker Desktop, but it doesn't work.

Upvotes: 4

Views: 1077

Answers (2)

R. Boutte
R. Boutte

Reputation: 908

As Noam Yizraeli suggested, disable legacy console worked for me (tutorial here).

I've disabled legacy console on PowerShell Console and restarted Docker, then everything's working now.

I've followed these steps:

  1. Close Docker Desktop
  2. Open a PowerShell
  3. Right click or press and hold on the title bar of the console window, and click/tap on Properties
  4. Click/tap on the Options tab, uncheck the Use legacy console box and click/tap on OK to apply
  5. Start Docker Desktop

Thanks again to Noam Yizraeli.

Upvotes: 1

Noam Yizraeli
Noam Yizraeli

Reputation: 5404

The OP had the lagacy console enabled creating a known issue with wsl backend. After disabling it using this link the issue was resolved

Upvotes: 1

Related Questions