Access license on windows server

Polyspace license is located on `D:\Path\To\License`. I want to access it from a docker image running linux.
currently polyspace is looking at:
`License path: port@licServerName:/home/polyspace/.matlab/R2023a_licenses:/opt/matlab/licenses/license.dat:/opt/matlab/licenses/*.lic`
How can I add `D:\Path\To\License` to the list of paths for licenses?
-Namir

4 Kommentare

Is that even possible? To use a Windows path from Linux ? Without coding it as something like
file://localhost/D:\\Path\\To\\License
??
Anirban
Anirban am 29 Sep. 2023
What kind of license are you using? Is it an individual Designated Computer license or a license that requires a license server setup?
Walter Roberson
Walter Roberson am 29 Sep. 2023
I'm still stuck on the question of how a Windows path is being used on a Linux system. Unless it were created as a single file in the current directory literally named D:\Path\To\License complete with literal backslash characters in the file name .
Shree Charan M L
Shree Charan M L am 17 Okt. 2023
You may use docker volumes to accss files on the host

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jacob Mathew
Jacob Mathew am 11 Jun. 2025

0 Stimmen

Hey Namir,
Since you have the license file, it can be copied into the Docker container using the COPY command in docker. You can refer to the official Docker documentation to learn more:
You can then point MATLAB License Manager to the license file to manage activation and licensing within the Docker container. An example way to do this would be as follows:
ENV INSTALLATION_PATH = " Your MATLAB and/or Polyspace Docker Installation Directory Here"
COPY license.txt ${INSTALLATION_PATH}
ENV MLM_LICENSE_FILE=${INSTALLATION_PATH}/license.txt
You can refer to the offical GitHub page of MathWork's Docker Image of MATLAB to learn more about the various arguments and parameters within the Dockerfile including MLM_LICENSE_FILE:

Kategorien

Mehr zu Installing Products finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2023b

Gefragt:

am 19 Sep. 2023

Beantwortet:

am 11 Jun. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by