From ed7873ef1ef91228551f991cff1560ad8de725f6 Mon Sep 17 00:00:00 2001 From: "Justin Terry (VM)" Date: Tue, 24 Sep 2019 10:21:17 -0700 Subject: [PATCH] Forward SandboxConfig.Hostname to Workload container activation 1. For Windows the Hostname property is not inherited from the sandbox and must be passed for the Workload container activations as well. Signed-off-by: Justin Terry (VM) --- pkg/server/container_create_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/server/container_create_windows.go b/pkg/server/container_create_windows.go index f14a2cf6f..799a5a039 100644 --- a/pkg/server/container_create_windows.go +++ b/pkg/server/container_create_windows.go @@ -63,6 +63,7 @@ func (c *criService) containerSpec(id string, sandboxID string, sandboxPid uint3 // NOTE: readonly rootfs doesn't work on windows. customopts.WithoutRoot, customopts.WithWindowsNetworkNamespace(netNSPath), + oci.WithHostname(sandboxConfig.GetHostname()), ) specOpts = append(specOpts, customopts.WithWindowsMounts(c.os, config, extraMounts))