Skip to content

Commit

Permalink
Merge pull request #1294 from jterry75/fix_windows_hostname_upstream
Browse files Browse the repository at this point in the history
Forward SandboxConfig.Hostname to Workload container activation
  • Loading branch information
Random-Liu committed Sep 24, 2019
2 parents 4f203aa + ed7873e commit 44e1f8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/server/container_create_windows.go
Expand Up @@ -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))
Expand Down

0 comments on commit 44e1f8d

Please sign in to comment.