Merge pull request #1294 from jterry75/fix_windows_hostname_upstream

Forward SandboxConfig.Hostname to Workload container activation
This commit is contained in:
Lantao Liu
2019-09-24 11:40:51 -07:00
committed by GitHub

View File

@@ -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))