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

Commit 9f5d2d4

Browse files
committed
fix the issue of missing hostname
Signed-off-by: fupan <[email protected]>
1 parent 81bc42b commit 9f5d2d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: daemon/pod/container.go

+3
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,9 @@ func (c *Container) ociSpec(cjson *dockertypes.ContainerJSON) *specs.Spec {
602602
ocispec.Process.Env = c.ociEnv()
603603
ocispec.Process.Cwd = c.spec.Workdir
604604
ocispec.Process.Terminal = c.spec.Tty
605+
606+
ocispec.Hostname = c.p.globalSpec.Hostname
607+
605608
/*
606609
* ocispec used the user's UID and GID instead of user name and group name,
607610
* thus it needed to convert the user name and group name to UID and GID in

0 commit comments

Comments
 (0)