6509-fixed interactive container hangs before exit when redirecting stdout

'Docker-DCO-1.1-Signed-off-by clouddrd (https://github.com/clouddrd/docker)
Merge branch 'master' of https://github.com/clouddrd/docker