如何使用docker的官方php-fpm debian图像查看或记录PHP错误?

I'm hitting a http 500 error, I'd like to log or view the actual PHP error causing this issue.

How can I enable the log? I've looked around for a php.ini file but it does not seem to be present?

The specific image I'm using is php:7.1-fpm-stretch

You may add your own .ini files in this path on the container:

/usr/local/etc/php/conf.d

This path is indicated in the response to the php --ini command which you can run in a shell inside your container.

You will have to restart the web server (i.e. the container) for your changes to take effect.