khs1994-docker / lnmp

:computer: :whale: :elephant: :dolphin: :penguin: :rocket: Start Docker LNMP(LEMP) In less than 2 minutes Powered by Docker Compose. 让 PHP 开发者快速(一键)搭建基于容器技术(Docker、Kubernetes)的开发、测试、生产(CI/CD by Drone)环境.

Home Page:https://docs.lnmp.khs1994.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate an error report at windows f's powershell terminal by executing the following command

will-nb opened this issue · comments

commented

在windowsf的powerShell终端执行以下命令发生错误

$ cd lnmp
$ ./lnmp-docker new

错误提示为:

不存在具有提供的名称的分布。

image

这个命令需要 WSL ,WSL 安装了吗

检查 .env.ps1 $DistributionName 变量的值

# $DistributionName="ubuntu-18.04"

$DistributionName="你的 wsl 发行版名称"

出现错误的原因是 ubuntu-18.04 这个 wsl 不存在

执行 $ wsl -l 可以看到安装的 wsl 发行版

commented

image
谢谢,装了ubuntu18.04,然后显示另一个报错了。
运行命令:

./lnmp-docker.ps1 new

报错:

/bin/bash: lnmp-docker: command not found

pull 最新代码 19.03 分支,不是 master 分支

/translate-title