首页 > 解决方案 > 为什么 docker-compose 因 ERROR 内部加载元数据而失败?

问题描述

docker pull mcr.microsoft.com/windows/servercore:ltsc2022

ltsc2022: Pulling from windows/servercore
no matching manifest for linux/amd64 in the manifest list entries

或者在尝试构建以下 docker 映像时:

FROM mcr.microsoft.com/windows/servercore:ltsc2019
RUN PowerShell -Command New-Item -Path "C:\\" -ItemType "directory" -Name "UiPath"; \
    Invoke-WebRequest "https://download.uipath.com/UiPathStudio.msi" -OutFile "C:\\UiPathStudio.msi"; \
    Start-Process C:\\UiPathStudio.msi -ArgumentList 'ADDLOCAL=DesktopFeature,Robot,Studio APPLICATIONFOLDER=C:\\UiPath /quiet' -Wait; \
    Remove-Item "C:\\UiPathStudio.msi" -Force; \
    Install-PackageProvider -Name NuGet -Force; \
    Register-PSRepository -Name UiPath -SourceLocation https://www.myget.org/F/uipath-dev/api/v2; \
    Install-Module -Repository UiPath -Name UiPath.Powershell -Force
CMD ["cmd"]

=> 错误 [内部] 加载 mcr.microsoft.com/windows/servercore:ltsc2019 0.9s 的元数据

[内部] 加载 mcr.microsoft.com/windows/servercore:ltsc2019 的元数据:


无法使用前端 dockerfile.v0 解决:无法创建 LLB 定义:清单 sha256:2b33eda096538c803fbf0c03dc7ea42c3c1b713e30aae03116d989867eda2bf8 中的平台不匹配:未找到

我究竟做错了什么?

标签: docker

解决方案


推荐阅读