Does MathWorks support a Docker image for MATLAB? How do we create a Docker image with MATLAB installed?

90 views (last 30 days)

I want to create a Docker image with MATLAB installed. How do I do this?

Is there any official documentation to show me how to do this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 25 Oct 2019
Yes, instructions for creating a MATLAB Docker container image are available on GitHub:
At this time, we only recommend using MATLAB in a Docker container with Network licenses, but we are working on expanding support to other license options.
From a licensing standpoint, the Software License Agreement (SLA) includes virtual machines in the definition of a "Computer" and therefore allows the use of products in a virtual environment, except in the case of Designated Computer. The Designated Computer License Option only allows use on a single, physical (not virtual) designated Computer. The only exception to this rule is if the Designated Computer License option is used on a Automation Server that is virtual. Please see our Program Offering guide (p.14) for more information.

More Answers (1)

David Willingham
David Willingham on 7 Apr 2021
In addition to GitHub, the MATLAB container is also now available in dockerhub!
  2 Comments
thabok
thabok on 28 Nov 2021
Is it possible that your license was created based on a windows host id (8 character volume serial number) but you are running the linux-based matlab image?
On linux, the relevant host id is the mac address of a network adapter (run ifconfig and look for the value next to "HWaddr").
But as far as I know, only network licenses are supported (not from a licensing perspective but for technical reasons). The main concern with a host-id based license is that the host-id of a container is not the same each time you start it.

Sign in to comment.

Tags

No tags entered yet.

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by