summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-03-23 10:23:26 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-23 15:22:01 +0000
commit8ca3bcc85d6bbf05e7838b20bfb1ae74afa8d35d (patch)
treeac382a7d4544d124341107400ec1d087ac3b726a
parentc1ff034a6c84344c4430b1911a5c83604a33fa0f (diff)
downloadpodman-8ca3bcc85d6bbf05e7838b20bfb1ae74afa8d35d.tar.gz
podman-8ca3bcc85d6bbf05e7838b20bfb1ae74afa8d35d.tar.bz2
podman-8ca3bcc85d6bbf05e7838b20bfb1ae74afa8d35d.zip
Add CONTAINER environment variable
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #533 Approved by: baude
-rw-r--r--libpod/container_internal.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 0b04cc81a..d8002b000 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -909,6 +909,7 @@ func (c *Container) generateSpec() (*spec.Spec, error) {
g.SetHostname(c.Hostname())
g.AddProcessEnv("HOSTNAME", g.Spec().Hostname)
+ g.AddProcessEnv("container", "libpod")
return g.Spec(), nil
}