We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi I am using the below to redirect logs to stderr and stdout but with no success.
RUN ln -sf /dev/stdout /var/log/fpm-access.log && ln -sf /dev/stdout /var/log/php5-fpm.log
Are you aware of the change that needs to be done in order to do this and benefit from docker logs command?
The text was updated successfully, but these errors were encountered:
Isn't it already doing so?
https://github.com/docker-library/php/blob/master/5.6/fpm/php-fpm.conf
error_log = /proc/self/fd/2 daemonize = no [www] ; if we send this to /proc/self/fd/1, it never appears access.log = /proc/self/fd/2
Sorry, something went wrong.
thx for the help @thaJeztah. You were absolutely right
You're welcome, I overlooked the /proc/self/fd/2 myself the first time I saw it :D
/proc/self/fd/2
Think this is answered and can be closed
No branches or pull requests
Hi I am using the below to redirect logs to stderr and stdout but with no success.
RUN ln -sf /dev/stdout /var/log/fpm-access.log &&
ln -sf /dev/stdout /var/log/php5-fpm.log
Are you aware of the change that needs to be done in order to do this and benefit from docker logs command?
The text was updated successfully, but these errors were encountered: