From ca03627a801fbaa0e55d498f05b8ca69addd7266 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 1 Jun 2018 13:08:53 +0200 Subject: oci: pass XDG_RUNTIME_DIR down to the OCI runtime Signed-off-by: Giuseppe Scrivano Closes: #871 Approved by: mheon --- libpod/oci.go | 1 + 1 file changed, 1 insertion(+) (limited to 'libpod/oci.go') diff --git a/libpod/oci.go b/libpod/oci.go index 725819b54..db0fd0d16 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -302,6 +302,7 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string) (er // 0, 1 and 2 are stdin, stdout and stderr cmd.Env = append(r.conmonEnv, fmt.Sprintf("_OCI_SYNCPIPE=%d", 3)) cmd.Env = append(cmd.Env, fmt.Sprintf("_OCI_STARTPIPE=%d", 4)) + cmd.Env = append(cmd.Env, fmt.Sprintf("XDG_RUNTIME_DIR=%s", os.Getenv("XDG_RUNTIME_DIR"))) if notify, ok := os.LookupEnv("NOTIFY_SOCKET"); ok { cmd.Env = append(cmd.Env, fmt.Sprintf("NOTIFY_SOCKET=%s", notify)) } -- cgit v1.2.3-54-g00ecf