6509-fixed interactive container hangs before exit when redirecting

Docker-DCO-1.1-Signed-off-by:clouddrd
(https://github.com/clouddrd/docker)
6509-fixed interactive container hangs before exit when redirecting

Docker-DCO-1.1-Signed-off-by: clouddrd
(https://github.com/clouddrd/docker)