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

Commands such as 'lnmp-xxxx' cannot be used on windows 10

polichan opened this issue · comments

OS Environment Info

OS: 10.0.18362.628

Docker: Docker version 19.03.8, build afacb8b

Docker Compose: docker-compose version 1.25.4, build 8d51620a

LNMP COMMIT: afd3853

Console output
  
wslapth : 无法将“wslapth”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路
径正确,然后再试一次。
所在位置 C:\Users\ayden\lnmp\windows\lnmp-php.ps1:54 字符: 27
+   --mount type=bind,src=$(wslapth $PWD),target=/app `
+                           ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (wslapth:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

C:\Program Files\Docker\Docker\resources\bin\docker.exe: Error response from daemon: invalid mount config for type "bind": field Source must not be empty.
See 'C:\Program Files\Docker\Docker\resources\bin\docker.exe run --help'.
  

My Issue is

参考了此文章进行的安装:

文章链接

使用了 19.03 的 Docker 分支

在 Windows 10 上安装 Docker,但是在使用 lnmp-php 这种快捷的指令时,提示如上错误信息。刚开始我怀疑是没有安装 windows subsystem linxu的问题,于是我就在应用商店装了一个,但是发现还是没有办法使用。环境变量的配置也是按照文档中一步步来的,甚至连 git clone 的路径也是一样的。希望能予以解答,感激不尽。

已经修复,请 pull 19.03 分支。

wslapth 应该是 wslpath

/translate-title