Redirecting output of non pid 1 process to docker logs Redirecting output of non pid 1 process to docker logs docker docker

Redirecting output of non pid 1 process to docker logs


I have same issue on the topic. The way I resolve it, you need to start the "ln -s" when docker is running NOT during Docker build (Dockerfile).

Here is my shell bash script

tail -n 0 -q -F /path/folder/*.log >> /proc/1/fd/1 &

Hope helps