'vc_redist.x64 does not install in microsoft/nanoserver image

0

I want to use microsoft/nanoserver as base image for my requirement and want to install ‘vc_redist.x64’ package into it but I am not able to install as it returns some error as shown below:

and this is my Dockerfile:

FROM microsoft/nanoserver
MAINTAINER <org name>
ADD . /
CMD ["powershell", "c:/scripts/start.ps1"]
ADD https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x64.exe /vc_redist.x64.exe
RUN C:\vc_redist.x64.exe /quiet /install

However if I use ‘microsoft/windowsservercore’ the base image size increases rapidly and it goes to 12+ GB. having large base image size does not fit in my requirement.

Is there any way to install ‘vc_redist.x64’ in ‘microsoft/nanoserver’ with its dependencies?

Any help is much appreciated.

2 Likes

Hi, did you manage to find a solution for this? I am having the exact same problem, any help would be greatly appreciated

1 Like

Hi, I am also looking for a solution to install vc_redist.x64.exe in windows nanoserver image. Were you able to find a solution?