mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #1350 from ndarilek/1348-add-hostname-to-environment
Runtime: add hostname to environment
This commit is contained in:
commit
29de2432ea
1 changed files with 1 additions and 0 deletions
|
@ -653,6 +653,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…
Add table
Reference in a new issue