'Failed to download Docker Desktop for Windows in Visual Studio

I tried to install Docker in VS 2019, by the option "Add Docker Support". It could not download it. After some minutes, it shows the following message:

========== Checking for Container Prerequisites ==========

Verifying that Docker Desktop is installed... Downloading Docker Desktop ... Failed to download Docker Desktop for Windows. Docker Desktop is not installed.

========== Finished ==========

VS gives no additional details. I updated to the latest version of VS2019 but problem continues. Did anybody have the same problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source