目录
1 现象
在 wsl 使用 docker-compose 命令时,提示如下:
大概的意思就是找不到这个命令在 wsl 1 版本中,推荐将发行版转换为 WSL 2,且在 docker 桌面端进行设置
The command $ docker-compose could not be found in this WSL 1 distro. We recommend to convert this distro to WSL 2 and activate the WSL integration in Docker Desktop settings.
2 解决
2.1 升级发行版本
主要是这2步。下载更新并且切换
1. 下载:
照着官方连接下载 exe 文件,点击安装
2: