Failed to deploy distro docker-desktop to C:\Users\Lenovo\AppData\Local\Docker\wsl\distro: : ……

I. Introduction

After uninstalling some software last time, my docker desktop could not be opened for no reason. Damn it, I spent an entire afternoon tinkering with this thing and restarted the computer five or six times before installing it...

I happened to be writing a small project during those two days. For convenience, I installed a mysql5.7 directly in docker. Docker suddenly couldn't be opened, and I was very worried.

After trying it several times, I finally opened the graphical interface, but it showed that docker failed to run and reported the following error to me.

 It took me a long time to figure it out, so I had no choice but to manually install another mysql5.7. (uncomfortable)

I suddenly remembered it again today. I typed the English words in the above picture one by one into the Baidu input box (I wanted to cry). I searched several times but they were of no use. I saw one that said to close WSL 2 based engine, and the worst one was , he didn’t explain clearly how to close it. It seems that after opening docker desktop, just check the Use WSL 2 based engine check box. But now I can’t even open the desktop? ?

2. Solve

So I started trying again, and finally solved it perfectly.

  1. Make sure docker desktop is turned off on your computer
  2. Open Windows command line
  3. wsl --shutdown
  4. The above command will shut down the running WSL 2 instance
  5. Open docker desktop again and return to normal

 

 

Haha, my mysql5.7 is back! ! !

Guess you like

Origin blog.csdn.net/m0_63080216/article/details/131992608