diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-04-03 11:45:51 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-04-03 11:45:55 -0400 |
commit | 84aa81fabe789c670bc67955a7fb05f7a4e46e67 (patch) | |
tree | 06ff3ab351dd197afda4d9a367eb37b14046cd69 /libpod | |
parent | ccb9e579c48141f70d016adfa9a9d4934bbdf976 (diff) | |
download | podman-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>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/oci_conmon_linux.go | 3 |
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 } |