mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
Add hostname to the container environment.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user