From eb3d3cfc5eb6ba18d9e9ac02b405d751fd39e5ed Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Thu, 6 Sep 2018 15:30:42 -0700 Subject: [PATCH] Revert "Add HOSTNAME to env by default for pod containers" This reverts commit 4c3e195db36e67d65bebd48b9987596799d9d543. Signed-off-by: Lantao Liu --- pkg/server/container_create.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/server/container_create.go b/pkg/server/container_create.go index a66d29061..e76b1c460 100644 --- a/pkg/server/container_create.go +++ b/pkg/server/container_create.go @@ -342,8 +342,6 @@ func (c *criService) generateContainerSpec(id string, sandboxID string, sandboxP for _, e := range config.GetEnvs() { g.AddProcessEnv(e.GetKey(), e.GetValue()) } - // add the HOSTNAME variable to the environment to match Docker runtime default - g.AddProcessEnv("HOSTNAME", sandboxConfig.GetHostname()) securityContext := config.GetLinux().GetSecurityContext() selinuxOpt := securityContext.GetSelinuxOptions()