Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
584 views
in Technique[技术] by (71.8m points)

visual studio 2019 - Docker Desktop is not running

I am trying to run Web app from visualStudio2019 and get the following error in the 'Docker Tools' output:

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

Verifying that Docker Desktop is installed...

Docker Desktop is installed.

========== Verifying that Docker Desktop is running... ==========

Verifying that Docker Desktop is running...

Starting Docker Desktop...

Visual Studio container tools require Docker to be running. Docker Desktop is not running.

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

Docker Destop do run on my computer. How can I fix that


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Fixed by openning PowerShell as administrator and running the following:

cd "C:Program FilesDockerDocker"

./DockerCli.exe -SwitchDaemon

I also checked with

docker run hello-world


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...