From 84aa81fabe789c670bc67955a7fb05f7a4e46e67 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 3 Apr 2020 11:45:51 -0400 Subject: Pass path environment down to the OCI runtime Signed-off-by: Daniel J Walsh --- libpod/oci_conmon_linux.go | 3 +++ 1 file changed, 3 insertions(+) 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 } -- cgit v1.2.3-54-g00ecf