How to use Individual License file in MATLAB Docker?

조회 수: 24 (최근 30일)
Andrew
Andrew 2024년 8월 5일
댓글: Andrew 2024년 8월 21일
Hello, I am trying to use my Individual License file in a MATLAB Docker container but I get the error of 'hostid of your computer does not match the hostid of your license file'.
I can login to the container by using my email and password but this is NOT ideal since the login session expires after some time and need to relogin again. I want to run this headless so if I can pass in a license file then I don't have to keep logging in manually.
I downloaded the Individual License file from the online License Center portal Install and Activate tab. This downloaded a license.lic file which I pass into the Docker container.
My Docker run command:
docker run -it --rm -p 5901:5901 -p 6080:6080 -v ~/ivy:/ivy -e MLM_LICENSE_FILE=/ivy/license.lic mathworks/matlab:r2021b -vnc
License error:

답변 (1개)

Divyanshu
Divyanshu 2024년 8월 6일
Hi Andrew,
As per the following MATLAB Answer thread in R2021b similar kind of error is generated due to a bug which should be ignored:
Moreover, you can refer the following 'Quick Start Guide for MATLAB Container' which is available in the documentation for MATLAB versions R2022b and later:
  댓글 수: 1
Andrew
Andrew 2024년 8월 21일
This error can not be ignored because in my screenshot MATLAB is not able to start because of the mismatched Host IDs

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

카테고리

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

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by