mirror of
https://github.com/containers/podman.git
synced 2025-05-28 21:46:51 +08:00
Add CONTAINER environment variable
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #533 Approved by: baude
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user