question

user23820-9268 avatar image
0 Votes"
user23820-9268 asked user23820-9268 edited

Which docker windows image do I need for running UWP app in ACI?

I have a console application that uses UWP (Windows.Media.*) and I'm trying to run it in a docker container, which base Windows image should I use?

What do I need to install on top of the base image in order to run the exe successfully? I tried adding VS tools and windows sdk in servercore but it didn't work. I only need the runtime dependencies for the .exe, not build dependencies.

azure-container-instancesazure-container-registry
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JaliyaUdagedara avatar image
2 Votes"
JaliyaUdagedara answered user23820-9268 edited

Can you try using the Windows base image.

Windows is the largest image and has full Windows API support for workloads.

Reference: Choosing a base image


· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, it worked with Windows image (20H2). Does ACI support 20H2? What is the standard windows base image version (there are a lots of them)?


Also, which image is smaller than the Windows base image so that I can try?

0 Votes 0 ·

I tried "20H2" but I got an error in Azure Portal that it isn't supported. I tried with "2004" tag and it says "deployment in progress" after 5 minutes 35 seconds already. Does it take so long to start up an ACI?

0 Votes 0 ·

Does ACI support 20H2? What Windows base OS images are supported?

On Azure Container Instances, the maximum size for a deployable container image 15 GB.

Windows Server 2016 base images

  • Nano Server: sac2016, 10.0.14393.3568 or newer

  • Windows Server Core: ltsc2016, 10.0.14393.3568 or newer

Windows Server 2019 and client base images

  • Nano Server: 1809, 10.0.17763.1040 or newer

  • Windows Server Core: ltsc2019, 1809, 10.0.17763.1040 or newer

  • Windows: 1809, 10.0.17763.1040 or newer

What is the standard windows base image version (there are a lot of them)?

There is no standard per se, it's based on your requirement. Please read through the Guidelines mentioned here: Windows Container Base Images: Guidlines.

Which image is smaller than the Windows-base image so that I can try.

Windows Container Base Images sizes in ascending order are as follows.

  • Nano Server

  • Server Core

  • Windows Server (3.1 GB)

  • Windows (3.4 GB)

Tried with the "2004" tag and it says "deployment in progress" after 5 minutes 35 seconds already. Does it take so long to start up an ACI?

The size of your container image impacts how long it takes to deploy, so generally, you want to keep your container images as small as possible.

I would suggest giving it a try with the Windows Server base image.

Hope this helps.

--please don't forget to upvote and Accept as answer if the reply is helpful--


1 Vote 1 ·
Show more comments