summaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-02-11 12:38:05 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-02-11 12:38:09 +0100
commit41967e260195bb874a80b5457f0f2fa02aab6635 (patch)
tree0a3e50471d47b5d986cfc978a9fde61834e954ed /libpod/oci.go
parent585f2963aaef6e54aedf33122498d1e772cc90fd (diff)
downloadpodman-41967e260195bb874a80b5457f0f2fa02aab6635.tar.gz
podman-41967e260195bb874a80b5457f0f2fa02aab6635.tar.bz2
podman-41967e260195bb874a80b5457f0f2fa02aab6635.zip
oci: do not set XDG_RUNTIME_DIR twice
we are doing it few lines above. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/oci.go')
-rw-r--r--libpod/oci.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index e55bd57dc..26d2c6ef1 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -321,7 +321,6 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string, res
cmd.Env = append(cmd.Env, fmt.Sprintf("_LIBPOD_USERNS_CONFIGURED=%s", os.Getenv("_LIBPOD_USERNS_CONFIGURED")))
cmd.Env = append(cmd.Env, fmt.Sprintf("_LIBPOD_ROOTLESS_UID=%s", os.Getenv("_LIBPOD_ROOTLESS_UID")))
cmd.Env = append(cmd.Env, fmt.Sprintf("HOME=%s", os.Getenv("HOME")))
- cmd.Env = append(cmd.Env, fmt.Sprintf("XDG_RUNTIME_DIR=%s", runtimeDir))
if r.reservePorts && !ctr.config.NetMode.IsSlirp4netns() {
ports, err := bindPorts(ctr.config.PortMappings)