aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-03 19:42:15 +0200
committerGitHub <noreply@github.com>2020-04-03 19:42:15 +0200
commit416fd4846facad21f515ce7bfc67d18c16fe358f (patch)
treecb44f013639019684de0cef1efd58185a11942b5
parent2d9b9e81a30ac46848587414d34955ad4cb991a7 (diff)
parent84aa81fabe789c670bc67955a7fb05f7a4e46e67 (diff)
downloadpodman-416fd4846facad21f515ce7bfc67d18c16fe358f.tar.gz
podman-416fd4846facad21f515ce7bfc67d18c16fe358f.tar.bz2
podman-416fd4846facad21f515ce7bfc67d18c16fe358f.zip
Merge pull request #5712 from rhatdan/path
Pass path environment down to the OCI runtime
-rw-r--r--libpod/oci_conmon_linux.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/oci_conmon_linux.go b/libpod/oci_conmon_linux.go
index 6a0097b8e..5fede3e7e 100644
--- a/libpod/oci_conmon_linux.go
+++ b/libpod/oci_conmon_linux.go
@@ -353,6 +353,9 @@ func (r *ConmonOCIRuntime) StartContainer(ctr *Container) error {
if notify, ok := os.LookupEnv("NOTIFY_SOCKET"); ok {
env = append(env, fmt.Sprintf("NOTIFY_SOCKET=%s", notify))
}
+ if path, ok := os.LookupEnv("PATH"); ok {
+ env = append(env, fmt.Sprintf("PATH=%s", path))
+ }
if err := utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, env, r.path, "start", ctr.ID()); err != nil {
return err
}