Windows 映像的 Skaffold 构建可能会在 Windows 机器上失败,因为 Skaffold 尝试拉取错误目标的基础映像。
如果出现此问题,您可能会看到类似以下内容的错误消息:
Checking cache...
- migrated-image-6jc3z: Error checking cache.
getting hash for artifact "migrated-image-6jc3z": getting dependencies for "migrated-image-6jc3z": parsing ONBUILD instructions: retrieving image "mcr.microsoft.com/dotnet/framework/aspnet:4.8": no child with platform linux/amd64 in index mcr.microsoft.com/dotnet/framework/aspnet:4.8
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-19。"],[],[],null,["# Issues with Windows IIS services migration\n==========================================\n\nThis document describes workarounds for some issues that you might\nencounter while migrating Windows IIS services.\n\nWindows IIS deployment marked not ready\n---------------------------------------\n\nThe deployment of Windows IIS workloads might be marked as not ready due\nto short timeouts. If you're deploying your workloads using Skaffold, then\nthe deployment might show as failed.\n\nAs a workaround for this issue, increase the readiness probe timeout and\nperiod using PowerShell: \n\n foreach ($file in (Get-ChildItem . -Recurse -Include \"deployment_spec.yaml\")) { (Get-Content $file).replace(\"periodSeconds: 10\", \"periodSe\n conds: 30\").replace(\"timeoutSeconds: 1\", \"timeoutSeconds: 10\") | Set-Content $file }\n\nSkaffold build for Windows images fails\n---------------------------------------\n\nSkaffold build for Windows images might fail on a Windows machine because\nSkaffold tries to pull the base image for the wrong target.\n\nIf this issue occurs, you might see an error message similar to the following\nmessage: \n\n Checking cache...\n - migrated-image-6jc3z: Error checking cache.\n getting hash for artifact \"migrated-image-6jc3z\": getting dependencies for \"migrated-image-6jc3z\": parsing ONBUILD instructions: retrieving image \"mcr.microsoft.com/dotnet/framework/aspnet:4.8\": no child with platform linux/amd64 in index mcr.microsoft.com/dotnet/framework/aspnet:4.8\n\nAs a workaround for this issue, pull the image manually using the `docker pull`\ncommand, and run the Skaffold build again."]]