Add hostname to the container environment.

This commit is contained in:
Nolan 2013-07-30 13:23:34 -05:00 committed by Michael Crosby
parent c3773740d9
commit 05219d6b52
1 changed files with 1 additions and 0 deletions

View File

@ -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 {