Change env to only update its 'home'-value when no root dir is provided
@@ -386,6 +386,7 @@ class ContainerExecutor(baseexecutor.BaseExecutor):
"""
assert self._use_namespaces
+ if root_dir is None:
env.update(self._env_override)
args = self._build_cmdline(args, env=env)
