mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-26 18:27:53 +00:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue