Is it possible to use an individual standard startup license for a docker container?

4 views (last 30 days)
I am trying to run matlab from inside a docker container based on the official mathworks/matlab:r2022b. I am getting the following error:
License Manager Error -9
The hostid of your computer (0242ac110002) does not match the hostid of the license file (38fc1d2d).
To run on this computer, you must run the Activation client to reactivate your license.
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/R2022b/9
Diagnostic Information:
Feature: MATLAB
License path: /usr/local/MATLAB/license.lic:/home/matlab/.matlab/R2022b_licenses:/opt/matlab/R2022b/licenses/license.dat:/opt/matlab/R2022b/licenses
Licensing error: -9,57.
Reactivating the license everytime the image is ran on a new host doesn't seem reasonable for a docker container. So I wanted to ask if the standard individual license is indented for this use case? the documentation for the official matlab image (https://hub.docker.com/r/mathworks/matlab) under "Configure your license" mentions "To run this container your license must be configured for cloud use. Individual and Campus-Wide licenses are already configured for cloud use." Did I missunderstand something here?

Answers (1)

Jaswanth
Jaswanth on 9 May 2024
Hi Abdullah,
For Individual and Designated Computer licenses, the Host ID used to activate MATLAB must not change over time or the Host ID will not match the Host ID in the license file, and MATLAB issues License Manager Error -9.
Possible solution is to configure your system to have a static Host ID and then reactivate MATLAB.
I hope the information provided above is helpful.

Categories

Find more on Containers in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!