假设我使用Windows11和Docker Desktop切换到WINDOWS容器
当我try 构建正式的ASP.NET CORE 8运行时映像时
docker pull mcr.microsoft.com/dotnet/aspnet:8.0
我收到错误:
list 列表条目中没有与WINDOWS/AMD64 10.0.22621匹配的 list
当我try 使用Windows Server 2022标准版在生产虚拟机中构建映像时,也会发生同样的情况
假设我使用Windows11和Docker Desktop切换到WINDOWS容器
当我try 构建正式的ASP.NET CORE 8运行时映像时
docker pull mcr.microsoft.com/dotnet/aspnet:8.0
我收到错误:
list 列表条目中没有与WINDOWS/AMD64 10.0.22621匹配的 list
当我try 使用Windows Server 2022标准版在生产虚拟机中构建映像时,也会发生同样的情况
在.NET 8 Docker Containers中有一个突破性的变化-Multi-platform container tags are Linux-only:
The .NET 8 multi-platform container tags have been updated to be Linux-only. This means that the
latest
,<major>.<minor>
, and<major>.<minor>.<patch>
tags are Linux-only going forward.
Starting in .NET 8, the8.0
tag will only retrieve a Linux-based image.
所以mcr.microsoft.com/dotnet/aspnet:8.0
是一个基于Linux的镜像,特别是Debian 12:
Tags | Dockerfile | OS Version | Last Modified |
---|---|---|---|
8.0.0-bookworm-slim-amd64, 8.0-bookworm-slim-amd64, 8.0.0-bookworm-slim, 8.0-bookworm-slim, 8.0.0, 8.0, latest | Dockerfile | Debian 12 | 11/21/2023 |
try 使用基于Windows的标记之一:
例如,mcr.microsoft.com/dotnet/aspnet:8.0.0-windowsservercore-ltsc2022
来自:
Tag | Dockerfile | Last Modified |
---|---|---|
8.0.0-windowsservercore-ltsc2022, 8.0-windowsservercore-ltsc2022 | Dockerfile | 11/14/2023 |
7.0.14-windowsservercore-ltsc2022, 7.0-windowsservercore-ltsc2022 | Dockerfile | 11/14/2023 |
6.0.25-windowsservercore-ltsc2022, 6.0-windowsservercore-ltsc2022 | Dockerfile | 11/14/2023 |
查看更多信息: