1、ErrorException] mkdir (): Permission denied
解决:权限不够,thinkphp5下,runtime 文件夹改777,文件所有者改为 laradock(进入workspace执行)。
2、thinkphp5 使用exit()函数,nginx返回500状态码
解决:runtime 文件夹改777
3、连接问题
在容器中执行时,MySQL连接的 Host 设置为 mysql,如果是外部客户端直接连接的话设置为常规地址。
redis等同理。
4、win10构建workspace时,报错提示/tmp/sources.sh: not found
git bash 中 切换到 laradock 目录
$ vi ./workspace/sources.sh
$ :set ff=unix
$ :wq
https://github.com/laradock/laradock/pull/2388
5、NVM 慢的问题
在 env
文件中设置
WORKSPACE_NVM_NODEJS_ORG_MIRROR
= https://npm.taobao.org/mirrors/node
这是设置 nvm
安装 nodejs
时从哪个镜像下载源文件的参数,设置后,nodejs
安装的飞快.
https://segmentfault.com/a/1190000021076776?_ea=32371232
6、WORKSPACE 慢
在 env
文件中设置:
CHANGE_SOURCE=true
UBUNTU_SOURCE=aliyun
注:UBUNTU_SOURCE
支持多种选择,具体情况请查看 workspace/sources.sh
文件
7、ppa 加速
在 workspace 的 Dockfile 中 增加标红的一段

find /etc/apt/sources.list.d/ -type f -name "ondrej-ubuntu-php-xenial.list" -exec sed -i.bak -r 's#deb(-src)?s*http(s)?://ppa.launchpad.net#deb1 https2://launchpad.proxy.ustclug.org#ig' {} ; &&
https://www.cnblogs.com/cshaptx4869/p/12374234.html
8、0curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
设置 host 文件:
199.232.28.133 raw.githubusercontent.com
https://github.com/laradock/laradock/issues/2459
https://segmentfault.com/a/1190000022907462
9、status code not OK but 500: {"Message":"Unhandled exception: Filesharing has
设置项目的根文件夹

https://stackoverflow.com/questions/62215781/docker-compose-failed-to-build-filesharing-has-been-cancelled-eshoponcontain