YARN-5366, container-executor would remove the Docker container when it exited. The removal is now handled by the DockerLinuxContainerRuntime. ContainerRelaunch is intended to reuse the workdir from the previous attempt, and does not call cleanupContainer prior to launchContainer. The container ID is reused as well. As a result, the previous Docker container still exists, resulting in an error from Docker indicating the a container by that name already exists.