Docker in detached mode

I have centOs Image with my custom scripts mounted on /tmp of each container , entrypoint to pass variable and run the script for different values and logs the output in volume.

when ran in detached mode , for some ESXi hosts it doesn’t log the output to the volume. It simply exits without logging any output to volume. docker logs does show intended output.
For other OS like windows,RHEL,SunOs,AIX it just finishes the job. Its the same code for all OS’s

Same script ran in interactive completes without any issue (run the script & logs the output to volume). I have ran this code on 7000 hosts successfully but its bails out on 300 ESXi hosts without any output.

Is there any detached mode option that can help me fix this issue ?