Fix Interactive container hangs before exit when redirecting stdout #6509

...9

Docker-DCO-1.1-Signed-off-by: choi woon ryong <clouddrd@gmail.com> (github: clouddrd)