summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-04-03 11:45:51 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-04-03 11:45:55 -0400
commit84aa81fabe789c670bc67955a7fb05f7a4e46e67 (patch)
tree06ff3ab351dd197afda4d9a367eb37b14046cd69
parentccb9e579c48141f70d016adfa9a9d4934bbdf976 (diff)
downloadpodman-84aa81fabe789c670bc67955a7fb05f7a4e46e67.tar.gz
podman-84aa81fabe789c670bc67955a7fb05f7a4e46e67.tar.bz2
podman-84aa81fabe789c670bc67955a7fb05f7a4e46e67.zip
Pass path environment down to the OCI runtime
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
-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
}