You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows Server Core 2022运行SQL Server Docker容器报linux不可用问题咨询

问题解答

1. Windows Server Core 2022是否预装Linux?

Windows Server Core 2022 默认未预装任何Linux发行版,也默认未启用WSL(Windows Subsystem for Linux,Windows Linux子系统)功能。你当前Docker运行的是默认的Windows容器模式,仅支持适配Windows内核的容器镜像。

2. 报错image operating system "linux" cannot be used on this platform的含义

你执行拉取命令使用的mcr.microsoft.com/mssql/server:2019-latest是微软官方默认发布的Linux架构SQL Server镜像,与你当前Docker运行的Windows容器模式不兼容,因此会触发平台不匹配的报错。

可选解决方案

  • 方案一(无需调整现有Docker配置):直接拉取适配Windows容器的SQL Server 2019镜像即可运行,对应镜像标签可选择匹配你本地nanoserver ltsc2022架构的版本。
  • 方案二:首先在系统中安装启用WSL2,之后将Docker切换为Linux容器模式,即可正常拉取运行你当前需要的Linux版SQL Server镜像。

内容的提问来源于stack exchange,提问作者Jamie

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.26 02:06:11