Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Redirecting application logs inside docker container to /proc/1/fd/1

I am hosting a php application and using monolog to log the needed data in my docker container. But, right now, I'm only able to log it into a file, in order to read which, I'll need to log into the docker container. So, I tried giving the log path as /proc/1/fd/1, since these are the only logs that are displayed with the command docker logs. But, an error saying "permission denied to open /proc/1/fd/1" occurs when monolog tries to write to this path, since only the root user has access to open this fd. I'd like to know how to solve this issue.

Comments