Add CONTAINER environment variable

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #533
Approved by: baude
This commit is contained in:
Matthew Heon
2018-03-23 10:23:26 -04:00
committed by Atomic Bot
parent c1ff034a6c
commit 8ca3bcc85d

View File

@ -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
}