SERVER-138380ClosedFixed

Add default PATH for podman client in Linux container action wrapper

{{bazel build install-devcore}} fails with rootless podman 3.4.4 (Ubuntu 22.04): {{nsenter}} is installed. The {{MongoInstallRule}} action runs under {{exec env -}}, so it has an empty environment and no {{PATH}}. {{_container_runtime_env}} in {{linux_container_action_wrapper.py}} copies {{os.environ}} into the environment of its {{podman}} calls. Podman 3.4.4 looks up {{nsenter}} through {{PATH}} when setting up CNI networking, so the call exits with 125. {{_container_runtime_env}} now applie

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue
Bazel
Labels
Tags and classification

No labels assigned.