YARN-7914. Fix exit code handling for short lived Docker containers. Contributed by Shane Kumpf
This commit is contained in:
parent
87e2570a14
commit
5a1db60ab1
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue