6509-fixed interactive container hangs before exit

Docker-DCO-1.1-Signed-off-by: roiz <clouddrd@gmail.com> (github:clouddrd/docker )