moving docker timeout specification inside attach thread