devome / dockerfiles

一些Dockerfile
https://evine.win
GNU General Public License v3.0
197 stars 22 forks source link

tieba-cloud-sign 使用时报错 #31

Closed daomengRen closed 2 years ago

daomengRen commented 2 years ago
[cont-init.d] 10-fix-owner: PGID=1000
[cont-init.d] 10-fix-owner: exited 0.
[cont-init.d] 20-fix-config: executing... 
[cont-init.d] 20-fix-config: Modify /var/www/config.php to the value set by the user...
[cont-init.d] 20-fix-config: cat: /var/www/config.php: No such file or directory
[cont-init.d] 20-fix-config: sed: /var/www/config.php: No such file or directory
[cont-init.d] 20-fix-config: cat: /var/www/config.php: No such file or directory
[cont-init.d] 20-fix-config: sed: /var/www/config.php: No such file or directory
[cont-init.d] 20-fix-config: cat: /var/www/config.php: No such file or directory
[cont-init.d] 20-fix-config: sed: /var/www/config.php: No such file or directory
[cont-init.d] 20-fix-config: cat: /var/www/config.php: No such file or directory
[cont-init.d] 20-fix-config: sed: /var/www/config.php: No such file or directory
[cont-init.d] 20-fix-config: cat: /var/www/config.php: No such file or directory
[cont-init.d] 20-fix-config: sed: /var/www/config.php: No such file or directory
[cont-init.d] 20-fix-config: exited 0.
[cont-init.d] 30-set-crontab: executing... 

怀疑是,映射volumes: - ./www:/var/www的问题,麻烦大佬检查下

devome commented 2 years ago

你的冒号左边改成你想使用的宿主机的绝对路径试试。

devome commented 2 years ago

哦,不对,不需要映射任何文件夹,我写错了。

devome commented 2 years ago

这么久竟然没人反馈此问题,我也没注意。。。。

daomengRen commented 2 years ago

这个映射是为了方便自己手动修改php网页吧,我看官方那里也写了

devome commented 2 years ago

如果要映射的话,你需要在创建前先把那个仓库克隆到映射文件夹。

daomengRen commented 2 years ago

/var/www对应仓库的是仓库的哪个文件夹还是说整个仓库

devome commented 2 years ago

整个仓库

daomengRen commented 2 years ago

好的,谢谢大佬