aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-21 08:05:38 -0500
committerGitHub <noreply@github.com>2022-02-21 08:05:38 -0500
commitd224a0f8ac4978c3ac399a0940f785892d63daa8 (patch)
treeedbac426dffcba771617b21bc390fb61675cba31 /libpod
parenta88ea2c68b1ef01077a53b1c568b85667dcbc1e2 (diff)
parentdb4d15e852c574a2f2f4039cfef4814982776544 (diff)
downloadpodman-d224a0f8ac4978c3ac399a0940f785892d63daa8.tar.gz
podman-d224a0f8ac4978c3ac399a0940f785892d63daa8.tar.bz2
podman-d224a0f8ac4978c3ac399a0940f785892d63daa8.zip
Merge pull request #12918 from dgibson/propagate-conf-env
Propagate CONTAINERS_CONF to conmon
Diffstat (limited to 'libpod')
-rw-r--r--libpod/oci_conmon_linux.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/oci_conmon_linux.go b/libpod/oci_conmon_linux.go
index 268a301fb..a328f7621 100644
--- a/libpod/oci_conmon_linux.go
+++ b/libpod/oci_conmon_linux.go
@@ -1318,6 +1318,10 @@ func (r *ConmonOCIRuntime) configureConmonEnv(ctr *Container, runtimeDir string)
env = append(env, e)
}
}
+ conf, ok := os.LookupEnv("CONTAINERS_CONF")
+ if ok {
+ env = append(env, fmt.Sprintf("CONTAINERS_CONF=%s", conf))
+ }
env = append(env, fmt.Sprintf("XDG_RUNTIME_DIR=%s", runtimeDir))
env = append(env, fmt.Sprintf("_CONTAINERS_USERNS_CONFIGURED=%s", os.Getenv("_CONTAINERS_USERNS_CONFIGURED")))
env = append(env, fmt.Sprintf("_CONTAINERS_ROOTLESS_UID=%s", os.Getenv("_CONTAINERS_ROOTLESS_UID")))