简体   繁体   English

SQL Server Docker 容器可以在 Windows Server core 2022 上运行吗(“linux”不能在这个平台上使用)

[英]Can a SQL Server Docker container run on Windows Server core 2022 ("linux" cannot be used on this platform)

docker pull mcr.microsoft.com/mssql/server:2019-latest

Error:错误:

image operating system "linux" cannot be used on this platform图像操作系统“linux”不能在这个平台上使用

I'm running docker on a Windows Server Core 2022 platform我在 Windows Server Core 2022 平台上运行 docker

  • Client app is Docker application version 0.8.0客户端应用程序是 Docker 应用程序版本 0.8.0
  • Server shows two images ltsc2022 and 1809-amd64 [nanoserver images]服务器显示两个图像 ltsc2022 和 1809-amd64 [nanoserver images]
  • Server version is 20.10.7服务器版本为 20.10.7
  • Kernel version is 10.0.20348内核版本为 10.0.20348

I wasn't aware that Linux was installed so the error is a bit confusing.我不知道安装了 Linux,所以错误有点令人困惑。 Does Windows Server Core 2022 come preloaded with Linux? Windows Server Core 2022 是否预装了 Linux? What does it mean when the error states "linux" cannot be used on this platform?当错误指出“linux”无法在此平台上使用时,这意味着什么?

Looking at the Task Manager, services tab, shows that Docker Engine is up and running.查看任务管理器的服务选项卡,显示 Docker 引擎已启动并正在运行。

You can't pull mcr.microsoft.com/mssql/server:2019-latest as it's Linux based.你不能拉 mcr.microsoft.com/mssql/server:2019-latest 因为它是基于 Linux 的。 You say you already pulled ltsc2022 and 1809-amd64 [nanoserver images], so you can install SQL Server 2019 on either of them as I've already done that, see the following link for an example: https://www.sqlservercentral.com/articles/polybase-scale-out-group-in-azure-for-free您说您已经拉取了 ltsc2022 和 1809-amd64 [nanoserver 映像],因此您可以在其中任何一个上安装 SQL Server 2019,因为我已经这样做了,请参阅以下链接以获取示例: https://www.sqlservercentral。 com/articles/polybase-scale-out-group-in-azure-for-free

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 .net Core Linux Docker 容器(使用 Docker for Windows)连接到 Internet 上的 Sql Server? - How can I connect to a Sql Server on the internet from a .net Core Linux Docker container (using Docker for Windows)? Docker容器中的.Net Core应用无法连接到SQL Server - .Net Core app in docker container can't connect to SQL Server SQL Server Linux的Docker容器不断退出 - Docker container for SQL Server Linux keeps exiting Docker 组合与使用 SQL Server 容器运行 - Docker compose vs run with SQL Server container 无法从Docker容器连接到SQL Server - Cannot connect to SQL Server from a Docker container 在 Docker 容器中的 Server Core 2019 上安装 SQL Server LocalDB - Install SQL Server LocalDB on Server Core 2019 in Docker container 为什么无法将我的 .net core 容器连接到 SQL Server docker 容器? - Why can't connect my .net core container to the SQL Server docker container? 无法从带有 ASP.NET Core 的 Docker 容器连接到 SQL Server 容器 - Can't connect from the Docker container with ASP.NET Core to SQL Server container 从linux上docker容器上的.net应用程序连接到windows机器上的sql server - Connecting to sql server on windows machine from a .net app on docker container on linux 无法登录到 mssql-server-linux 容器中的 SQL Server - Cannot log into SQL Server in mssql-server-linux container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM