I’m trying to install an application using MSI file in the Docker container.
That’s my Dockerfile:
FROM mcr.microsoft.com/windows/servercore:ltsc2019
# Set the working directory in the container
WORKDIR /app
# Copy the current directory content into the container at /app
COPY . /app
# Install MFT
RUN "start /wait msiexec /i MFT_ALFA_4.15.28.7MFT64_SetUp.msi /quiet /passive"
RUN echo %ERRORLEVEL%
# Infinite loop
CMD a.bat
a.bat is an inifnite loop that is executed after installation so that Docker container doesn’t stop afterward.
I am sure that files are copied to the Docker correctly:
The funniest thing is that if I execute same installation command on my host, the software is installed succesfully in the C:My Programs directory if no TARGETDIR is specified in the command – only User Account Control prompts for credentials, but afaik you operate in the docker as an administrator so it shouldn’t be a problem.
Does anyone know why the software cannot be installed in the Docker? No error message is printed and the errorlevel is 0.