Skip to content
Discussion options

You must be logged in to vote

This is a Windows Dockerfile quoting/PowerShell issue, not that msiexec “doesn’t wait”.

Your Dockerfile sets the shell to:

SHELL ["powershell", "-Command", "Continue = 'Stop'; SilentlyContinue = 'SilentlyContinue';"]

Those assignments are missing the $ErrorActionPreference variables, so they do nothing. That means failures in your RUN step can be ignored, and the layer can still be cached as “successful”. Also, you are using Start-Process without -PassThru, so you can’t inspect the exit code, and the MSI may be failing silently (common in Windows containers).

Use the canonical pattern for MSI installs in Windows containers: call msiexec directly and check $LASTEXITCODE, and set error pref…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@uldyssian-sh
Comment options

Answer selected by jghal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants