Why doesn’t Docker open the new fd for CMD?
I’m trying to redirect stdout to /dev/null after duplicating it to fd 3 (in order to throw away a third-party library’s use of stdout). This works just fine in a shell script (including a shell script called from another shell script and a Python script called from a shell script). However, Docker seems to be closing fd 3, so my app can’t write to it.