[ 
https://issues.apache.org/jira/browse/YARN-7189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Badger updated YARN-7189:
------------------------------
    Description: 
Once the docker run command is executed, the docker container is created unless 
the return code is 125 meaning that the run command itself failed 
(https://docs.docker.com/engine/reference/run/#exit-status). Any error that 
happens after the docker run needs to remove the container during cleanup.

{noformat:title=container-executor.c:launch_docker_container_as_user}
  snprintf(docker_command_with_binary, command_size, "%s %s", docker_binary, 
docker_command);

  fprintf(LOGFILE, "Launching docker container...\n");
  FILE* start_docker = popen(docker_command_with_binary, "r");
{noformat}

  was:
Once the docker run command is executed, the docker container is created unless 
the return code is 125 meaning that the run command itself failed 
(https://docs.docker.com/engine/reference/run/#exit-status). Any error that 
happens after the docker run needs to remove the container during cleanup.

{noformat:title=container-executor.c:launch_docker_container_as_user}
{noformat}


> Docker doesn't remove containers that error out early
> -----------------------------------------------------
>
>                 Key: YARN-7189
>                 URL: https://issues.apache.org/jira/browse/YARN-7189
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: yarn
>            Reporter: Eric Badger
>            Assignee: Eric Badger
>
> Once the docker run command is executed, the docker container is created 
> unless the return code is 125 meaning that the run command itself failed 
> (https://docs.docker.com/engine/reference/run/#exit-status). Any error that 
> happens after the docker run needs to remove the container during cleanup.
> {noformat:title=container-executor.c:launch_docker_container_as_user}
>   snprintf(docker_command_with_binary, command_size, "%s %s", docker_binary, 
> docker_command);
>   fprintf(LOGFILE, "Launching docker container...\n");
>   FILE* start_docker = popen(docker_command_with_binary, "r");
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to