Reopening stdin, stdout and stderr if they are pointing to /dev/null.

but we run non-Docker containers too :)

This is probably fine for now, eventually may be an issue.