Hi All,
I'm try to install mcr in docker so that I could run different mcr in my pc.
FIrst I build my docker file :
# Line 1: Use dotnet-framework base image
FROM microsoft/dotnet-framework
# Line 2: Download MCR installer (self-extracting executable) and save as ZIP file
ADD https://www.mathworks.com/supportfiles/downloads/R2018b/deployment_files/R2018b/installers/win64/MCR_R2018b_win64_installer.exe C:\\MCR_R2018b_win64_installer.zip
# Line 3: Use PowerShell
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
# Line 4: Unpack ZIP contents to installation folder
RUN Expand-Archive C:\\MCR_R2018b_win64_installer.zip -DestinationPath C:\\MCR_INSTALLER
# Line 5: Run the setup command for a non-interactive installation of MCR
RUN Start-Process C:\MCR_INSTALLER\bin\win64\setup.exe -ArgumentList '-mode silent', '-agreeToLicense yes' -Wait
# Line 6: Remove ZIP and installation folder after setup is complete
RUN Remove-Item -Force -Recurse C:\\MCR_INSTALLER, C:\\MCR_R2018b_win64_installer.zip
After that, I build my docker image [PowerShell]
docker build -t testing -f ./DockerFile.txt .
Then, after that I run the exe file (in GUI), however, there is an error.
docker run testing myapplication.exe
I'm new to docker, anyone can help me?

댓글 수: 1

Kevin Chng
Kevin Chng 2019년 1월 7일
편집: Kevin Chng 2019년 1월 7일
I guess my docker image does not include java dependencies. It might be the problem. However, i'm not sure.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Microservices에 대해 자세히 알아보기

태그

질문:

2019년 1월 7일

편집:

2019년 1월 7일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by