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