Docker Community Forums

Share and learn in the Docker community.

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


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 /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.


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?