Skip to content

Commit

Permalink
Add CONTAINER environment variable
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Heon <[email protected]>

Closes: #533
Approved by: baude
  • Loading branch information
mheon authored and rh-atomic-bot committed Mar 23, 2018
1 parent c1ff034 commit 8ca3bcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libpod/container_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8ca3bcc

Please sign in to comment.