3
在Docker容器中运行时,如何获取php-fpm登录到stdout / stderr
我在docker容器中安装了php-fpm,并在其中Dockerfile编辑fpm config文件(/etc/php5/fpm/pool.d/www.conf)来设置访问日志/var/log/fpm-access.log和错误日志/var/log/fpm-php.www.log: # Do some php-fpm config # Redirect worker stdout and stderr into main error log # Activate the fpm access log # Enable display errors # Enable the error log RUN sed -i '/^;catch_workers_output/ccatch_workers_output = yes' /etc/php5/fpm/pool.d/www.conf && \ sed -i '/^;access.log/caccess.log = /var/log/fpm-access.log' /etc/php5/fpm/pool.d/www.conf && \ sed …