MATLAB docker container login via script?
古いコメントを表示
Hi Team,
- We want to learn how to pass user name and password for MATLAB via bash script.
- Once the container job rub is completed, we want to end the MATLAB session. We are facing below session error when re-running the container probably as the session has not ended in previous run.
ERROR:
License Manager Error -4
Maximum number of users for MATLAB reached. Try again later
3 件のコメント
Winston Yu
2022 年 5 月 20 日
編集済み: Winston Yu
2022 年 5 月 20 日
Shyamal:
There are several options to run docker, like if you are using
docker run -it --rm -p 8888:8888 --shm-size=512M mathworks/matlab:r2022a -browser
This method won't ask for any password, and you need to open a browser to access the MATLAB through a webpage, can you tell me how you run the docker image? Are you using batch? A screenshot of your command and error message will be helpful.
Shyamal Agarwal
2022 年 5 月 20 日
Mauro
2024 年 6 月 25 日
Hey, same problem here. Did you find a solution?
回答 (1 件)
Dheeraj
2024 年 6 月 26 日
Hi Shyamal Agarwal,
I understand you want to launch MATLAB docker container non-interactively.
By default MATLAB container is configured to use Online Licensing so if you have an individual license or your organization is setup to use Online Licensing it prompts to enter your MathWorks Account username and password.
Online Licensing isn't always an option and in some cases isn't a desired workflow. Instead you can use run the container using license server instead.
You can specify the license server you want the container to acquire licenses from by passing an environment variable with the "-e" option when you launch a container. This will set up an environment variable within the container. MATLAB conveniently looks for MLM_LICENSE_FILE when starting and will use it for license authentication.
docker run -it --rm -e MLM_LICENSE_FILE=27000@<IP of your License server> mathworks/matlab
To know more about how to use MATLAB docker image and its reference architecture along with the configurations available, you could go refer to the below URL.
To know more about how to create custom MATLAB docker container you could refer to the below MATLAB's documentation.
カテゴリ
ヘルプ センター および File Exchange で Containers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!