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:
parent
600e919469
commit
5f7ef73b7a
|
@ -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