mirror of https://github.com/containers/podman.git
Add CONTAINER environment variable
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #533 Approved by: baude
This commit is contained in:
parent
c1ff034a6c
commit
8ca3bcc85d
|
@ -909,6 +909,7 @@ func (c *Container) generateSpec() (*spec.Spec, error) {
|
||||||
|
|
||||||
g.SetHostname(c.Hostname())
|
g.SetHostname(c.Hostname())
|
||||||
g.AddProcessEnv("HOSTNAME", g.Spec().Hostname)
|
g.AddProcessEnv("HOSTNAME", g.Spec().Hostname)
|
||||||
|
g.AddProcessEnv("container", "libpod")
|
||||||
|
|
||||||
return g.Spec(), nil
|
return g.Spec(), nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue