Cannot start Window Server 2019 on docker CLI

Hi,
Under window Server 2019/Docker CLI
I’ve several trying to run Window Server 2019 on following commands

docker run -e 'ACCEPT_EULA=Y' --name ltsc2019 -d -p 8080:80 mcr.microsoft.com/windows/servercore:ltsc2019

things i did try: ‘ACCEPT_EULA=Y’, accept-eula, AcceptEula(=1)

docker run -it --entrypoint powershell mcr.microsoft.com/windows/servercore:ltsc2019
Set-ItemProperty -Path HKLM:\Software\Microsoft\Windows NT\CurrentVersion -Property SoftwareProtectionPlatform -Value 1

However, seems accept eula does not works.

Could someone help to resolve this pie stucks or explain what stupid I did.

thanks much for help.

I don’t think I have answers as I don’t use these images and I don’t run Windows containers usually, but I have questions which might help you find the answer.

  • What is the host operating system? Windows Pro, Home or Server?
  • Whyis that ACCEPT_EULA needed? I only see you starting a container, but what exactly are you trying to achieve? What happens when you try to start the container?
1 Like

Hi Rimelek,

Thank much for your answers, here r my concept:

  • I installed on Window Server 2019, and try to host under OS Window Server 2019
  • Why is that ACCEPT_EULA needed >> the Docker CLI logger telling us that we need to accept EULA before using Image for Container, any workaround are great welcome.
    what exactly are you trying to achieve > I want start container normally within Accept Eula >> currently no way to be accept.

I may stuck in my stupid issue so long. Please help that the Docker can start Window image or not.
Surprising that found no help available in this typical happening.

What is the exact error message that warns you about accepting the EULA? Since I rarely used Windows containers, I’m not 100% sure if I tied this specific image, but I believe so. I don’t think I ever needed to accept any EULA just to start a container.

Microsoft doesn’t mention it either

They linked this page too

But they don’t mention setting any variable just reading the EULA while you are wating for the image to be downloaded.

I assume you installed Docker CE on Windows server and not Docker Desktop, right?