Subprocess read issue in docker

all of it totally off-topic here ;(