Docker Container连不上的问题

用VSCode连接remote docker,报告下面的错误

Docker not running on Ubuntu WSL due to error cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [closed]

https://stackoverflow.com/questions/61592709/docker-not-running-on-ubuntu-wsl-due-to-error-cannot-connect-to-the-docker-daemo

原因:Docker Desktop每次升级完之后,会把默认连接WSL2的Ubuntu引擎给去掉,不知道为啥,还需要手工重置一下,真tmd烦人。