Fix Interactive container hangs before exit when redirecting stdout #6509

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