No error logs in Docker logs

I am not able to see the error messages [Specially run time errors] in the docker logs.
Cmd: using docker logs -f
Run time errors like 4/0