From 3f5da4d0dd04f755f9a46f93d59f2db58285436b Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 23 Mar 2018 11:22:48 -0400 Subject: Make container env variable conditional Add only when it's not already present. Add a more specific version in podman spec generation so we get 'container=podman' not 'container=libpod' Signed-off-by: Matthew Heon Closes: #540 Approved by: baude --- cmd/podman/spec.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/podman') diff --git a/cmd/podman/spec.go b/cmd/podman/spec.go index c4202fcef..014919e17 100644 --- a/cmd/podman/spec.go +++ b/cmd/podman/spec.go @@ -195,6 +195,7 @@ func createConfigToOCISpec(config *createConfig) (*spec.Spec, error) { for sysctlKey, sysctlVal := range config.Sysctl { g.AddLinuxSysctl(sysctlKey, sysctlVal) } + g.AddProcessEnv("container", "podman") // RESOURCES - MEMORY if config.Resources.Memory != 0 { -- cgit v1.2.3-54-g00ecf