YARN-7914. Fix exit code handling for short lived Docker containers. Contributed by Shane Kumpf

(cherry picked from commit 5a1db60ab1)
This commit is contained in:
Jason Lowe 2018-02-12 15:50:10 -06:00
parent 600e919469
commit 5f7ef73b7a
1 changed files with 46 additions and 46 deletions

View File

@ -1577,6 +1577,7 @@ int launch_docker_container_as_user(const char * user, const char *app_id,
sleep(1);
}
#endif
}
sprintf(docker_inspect_exitcode_command,
"%s inspect --format {{.State.ExitCode}} %s",
@ -1629,7 +1630,6 @@ int launch_docker_container_as_user(const char * user, const char *app_id,
fflush(ERRORFILE);
}
}
}
cleanup: