【问题标题】:Error while trying to run docker command in Attendize尝试在 Attendize 中运行 docker 命令时出错
【发布时间】:2018-06-16 09:46:49
【问题描述】:

我正在尝试从here 安装参加者

我正在尝试运行这个 docker 环境link 一切正常,直到

docker-compose build

现在,当我尝试跑步时,

docker run --rm -v $(pwd):/app composer/composer install

我收到以下错误

Fatal error: Uncaught ReflectionException: Class log does not exist in /app/vendor/laravel/framework/src/Illuminate/Container/Container.php:734
Stack trace:
#0 /app/vendor/laravel/framework/src/Illuminate/Container/Container.php(734): ReflectionClass->__construct('log')
#1 /app/vendor/laravel/framework/src/Illuminate/Container/Container.php(630): Illuminate\Container\Container->build('log', Array)
#2 /app/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(697): Illuminate\Container\Container->make('log', Array)
#3 /app/vendor/laravel/framework/src/Illuminate/Container/Container.php(848): Illuminate\Foundation\Application->make('log')
#4 /app/vendor/laravel/framework/src/Illuminate/Container/Container.php(803): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /app/vendor/laravel/framework/src/Illuminate/Container/Container.php(772): Illuminate\Container\Container->getDependencies(Array, Array)
#6 /app/vendor/laravel/framework/src/Illuminate/Container/Container.php(630): Illuminat in /app/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 734
Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255

我尝试用谷歌搜索这个错误并找到了这个link

据此,删除.env 中的空格应该可以修复错误。但对我不起作用。

谁能告诉我如何解决这个问题?

提前致谢

【问题讨论】:

  • 你用的是什么操作系统?
  • 我使用的是 Ubuntu 18.04
  • 你的.env现在怎么样了?
  • DB_TYPE=pgsql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=attendize DB_USERNAME=attendize DB_PASSWORD=attendize
  • 我建议您将这两个 docker 文件结合起来,并从中构建自定义映像。我会为你做,但它有很多图像,我的互联网很慢

标签: php laravel ubuntu docker docker-compose


【解决方案1】:

Attendize Github 页面上提供了一个新的 Docker 框,可帮助您更快地启动和运行。

【讨论】:

    猜你喜欢
    • 2018-11-05
    • 2021-01-08
    • 2020-12-18
    • 2021-08-29
    • 1970-01-01
    • 2020-04-08
    • 2017-08-10
    相关资源
    最近更新 更多