mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add hostname to the container environment.
This commit is contained in:
parent
d5a57a4b5e
commit
9a604acc23
1 changed files with 1 additions and 0 deletions
|
@ -652,6 +652,7 @@ func (container *Container) Start(hostConfig *HostConfig) error {
|
|||
"-e", "HOME=/",
|
||||
"-e", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
||||
"-e", "container=lxc",
|
||||
"-e", "HOSTNAME="+container.Config.Hostname,
|
||||
)
|
||||
|
||||
for _, elem := range container.Config.Env {
|
||||
|
|
Loading…
Reference in a new issue