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

This commit is contained in:
Jason Lowe 2018-02-12 15:50:10 -06:00
parent 87e2570a14
commit 5a1db60ab1

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: