Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit 9cd964f

Browse files
authored
Merge pull request #898 from Random-Liu/revert-#895
Revert "Add HOSTNAME to env by default for pod containers"
2 parents db8500d + eb3d3cf commit 9cd964f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

pkg/server/container_create.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,6 @@ func (c *criService) generateContainerSpec(id string, sandboxID string, sandboxP
342342
for _, e := range config.GetEnvs() {
343343
g.AddProcessEnv(e.GetKey(), e.GetValue())
344344
}
345-
// add the HOSTNAME variable to the environment to match Docker runtime default
346-
g.AddProcessEnv("HOSTNAME", sandboxConfig.GetHostname())
347345

348346
securityContext := config.GetLinux().GetSecurityContext()
349347
selinuxOpt := securityContext.GetSelinuxOptions()

0 commit comments

Comments
 (0)