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

1.3k Views Asked by At
docker pull mcr.microsoft.com/mssql/server:2019-latest

Error:

image operating system "linux" cannot be used on this platform

I'm running docker on a Windows Server Core 2022 platform

  • Client app is Docker application version 0.8.0
  • Server shows two images ltsc2022 and 1809-amd64 [nanoserver images]
  • Server version is 20.10.7
  • Kernel version is 10.0.20348

I wasn't aware that Linux was installed so the error is a bit confusing. Does Windows Server Core 2022 come preloaded with Linux? What does it mean when the error states "linux" cannot be used on this platform?

Looking at the Task Manager, services tab, shows that Docker Engine is up and running.

1

There are 1 best solutions below

0
pabechevb On

You can't pull mcr.microsoft.com/mssql/server:2019-latest as it's Linux based. 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