-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to install Visual C++ 2015 Redistributable to this image? #15
Comments
|
Thanks! |
RUN C:\vc_redist.x64.exe /quiet /install - does not work for me. I ran it from the cmd prompt from within the container, I just get the prompt back immediately without any work/install getting done. |
@nkamatam you'll need to put that command into your dockerfile, not run manually from your command line. |
@mlapaglia It work for me when i put in docker file, but it does not work when i try to install it from container. Is there any reason to it? As i was trying to run helloworld exe but it is still not printing to console after above installation as well. I verified in registry also. |
Is the installation of VC runtime does not work with "mcr.microsoft.com/dotnet/core/aspnet:2.1" base image which is basically of ASP.NET CORE. If I try the dotnet framework base image VC runtime gets installed. Is the reason on mentioned here |
Hi, |
@Escoto, That error seems orthogonal to your Dockerfile and is a general Windows Docker issue. The |
I have a refined suggestion that follows the Dockerfile best practices. The previous suggestion is not optimal from a layer perspective.
|
I'm fairly new to Dockerfiles, but the following gave me an error:
I switched it out for @MichaelSimons's solution and that works much better. |
Does not work to me. I get Access Denied error on |
I'm using the following: # escape=`
FROM mcr.microsoft.com/dotnet/framework/runtime:4.8
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
Invoke-WebRequest "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile "vc_redist.x64.exe"; `
Start-Process -filepath C:\vc_redist.x64.exe -ArgumentList "/install", "/passive", "/norestart" -Passthru | Wait-Process; `
Remove-Item -Force vc_redist.x64.exe; It works for me and should be more in line with the Best practices. |
Hi everyone!
|
None of these work |
Using docker on Windows is by far the worst idea I invested my time on.
…On Fri, 24 Mar, 2023, 4:17 am abaghum, ***@***.***> wrote:
None of these work
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFBDGBZSGTNQVKBOPVJJM6LW5THG3ANCNFSM4DH2GYQQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi All, I am using Podman instead of Docker.. Can i use C++ Redistributable in podman container since its linux based..? |
What is your scenario for using this in the context of Linux? |
Podman will support your use of wsl(2) based linux images on a Windows host but not a lot of call for visual c runtime in that case. |
This does not work if the image is Nano Server 64 based, because the installer is a 32 bit app and immediately terminates with exit code 3221225781 on that system. |
What would need to be done to the dotnet/sdk or dotnet/aspnet base images to get this working correctly? Our application leverages sqlcipher, which won't run without the redist. I can get it running on windows:ltsc2019, but the image size is enormous. |
I missed that you were asking about the .NET (Core) images and the not .NET Framework images. You should be able to install redist on the .NET Windows Server Core images. As you noted it won't work with the Linux images and it also won't work on the Nano Server images. |
I have an ASP.NET application that requires native libraries to run. How could I install Microsoft Visual C++ 2015 Redistributable into this image?
The text was updated successfully, but these errors were encountered: