docker - 为什么 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 中的平台不匹配:未找到
我究竟做错了什么?
解决方案
推荐阅读
- json - SwiftUI 文本视图:当可选字符串为零时,预期的默认值不起作用
- sql - 我不明白这些查询对我来说是一样的。这些查询有什么区别?
- python - “ImageField”对象没有属性“_committed”
- android - JNI Android qt 问题
- reactjs - 我正在将我的反应与 firebase 联系起来并收到此错误。错误:无效的挂钩调用
- android - 无法将数据形式的数据库分配给 MutableLiveData
- python - python TypeError:'list'和'int'的实例之间不支持'> ='
- ios - 推送到 Testflight 时适用于 iOS 的 Azure DevOps 超时
- java - 为什么我的程序会检查彼此相邻的匹配项而不是一般情况下的匹配项?
- php - PhpSpreadsheet - 使用 --prefer-source 与作曲家一起安装以获取文档和示例,但我没有得到它们