Running Matlab in a docker container

조회 수: 5 (최근 30일)
Jesper Jensen
Jesper Jensen 2021년 2월 5일
댓글: Parker Morse 2021년 7월 1일
I am trying to run Matlab in a docker instance using the following repo: https://github.com/mathworks-ref-arch/matlab-dockerfile
I have followed the steps and built the image. To activate the license and run a job, tried the following
docker run --rm -it --entrypoint=/bin/bash -v /path/to/licenses:/licenses matlab:r2020b
where
# cat activation.ini
isSilent=true
activateCommand=activateOffline
licenseFile=/licenses/license.lic
installLicenseFileDir=/licenses/
installLicenseFileName=license.lic
# ls licenses
activation.ini license.lic
Inside the container I then run
matlab@b4d167dfc26b:~$ /usr/local/MATLAB/bin/activate_matlab.sh -propertiesFile /licenses/activation.ini
Silent activation succeeded.
matlab@b4d167dfc26b:~$ matlab -batch "4+4"
matlab@b4d167dfc26b:~$ ---------------------------------------------------------------------------
Error: Activation cannot proceed. You may either:
1. Set an X11 display, and restart the activation process
2. Use the silent activation feature
3. Activate using the license center
---------------------------------------------------------------------------
I don't understand why the license activation doesn't work, when it seems to succed. I have made sure that the user for the licence.lic file is the correct one (matlab).
Any ideas?
  댓글 수: 1
Parker Morse
Parker Morse 2021년 7월 1일
This looks like the same problem as "Activation still required after silent activation succeeded". Does Lizz Cooper's comment on this answer solve this problem?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by