Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Commit

Permalink
fix the issue of missing hostname
Browse files Browse the repository at this point in the history
Signed-off-by: fupan <[email protected]>
  • Loading branch information
lifupan committed Jul 11, 2018
1 parent 81bc42b commit 9f5d2d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daemon/pod/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ func (c *Container) ociSpec(cjson *dockertypes.ContainerJSON) *specs.Spec {
ocispec.Process.Env = c.ociEnv()
ocispec.Process.Cwd = c.spec.Workdir
ocispec.Process.Terminal = c.spec.Tty

ocispec.Hostname = c.p.globalSpec.Hostname

/*
* ocispec used the user's UID and GID instead of user name and group name,
* thus it needed to convert the user name and group name to UID and GID in
Expand Down

0 comments on commit 9f5d2d4

Please sign in to comment.