When running service upgrade, docker container image set to a newer version would fail. This is a follow up to
YARN-9126 changes. It appears that container working directory is removed and cause the localization of files stuck in a infinite loop. It looks like race condition between file getting deleted and recreation of the directories and files.