运行docker-compose的时候,出现了
The command ‘docker-compose’ could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.
For details about using Docker Desktop with WSL 2, visit:
https://docs.docker.com/go/wsl2/
这个提示,我找了半天原因,最后才发现这个是个坑。因为你用wsl2的ubuntu的docker,你需要windows的docker desktop同时运行,并且setting->General下面的Use the WSL 2 based engine这个选项要勾选上。然后重启,开着win的docker就可以了。