Docker logging question

Hello there,

I have on shell script in CMD like
CMD ["/bin/bash",“shell.sh”]

shell.sh contains

service someservice start
apache -f configfile.conf &

In this case if I create solf link for one of my log file like

ln -sfT /proc/1/fd/1 /error.log

Logging doesn’t work. But If I do change like ( swap command ) this in shell.sh

apache -f configfile.conf &
service someservice start

I’m getting logs when i execute docker logs.