Can I create a R2017b - R2019a Docker container with MATLAB Package Manager (MPM) and the R2019b mathworks/matlab-deps base image?

4 views (last 30 days)
I want to create a custom MATLAB Container Image using the instructions in this GitHub® repository.
The oldest base image is for R2019b, but MPM supports installing R2017b and above. Can I use the R2019b mathworks/matlab-deps base image to build a custom container for R2017b - R2019a?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 23 Feb 2023
The R2019b mathworks/matlab-deps base image can be used with R2017b-R2019a.
Make the following changes to the Dockerfile you obtained from the "Create a MATLAB Container Image" GitHub® repository:
Edit the "ARG MATLAB_RELEASE=" line to specify R2019b. For example: 
ARG MATLAB_RELEASE=R2019b
Then, edit the "--release=" line in MPM section to specify which release you would like to use. For example: 
# Run mpm to install MATLAB in the target location and delete the mpm installation afterwards.
# If mpm fails to install successfully then output the logfile to the terminal, otherwise cleanup.
RUN wget -q https://www.mathworks.com/mpm/glnxa64/mpm \
&& chmod +x mpm \
&& ./mpm install \
--release=r2018a \ --destination=/opt/matlab \
--products MATLAB \
|| (echo "MPM Installation Failure. See below for more information:" && cat /tmp/mathworks_root.log && false) \
&& rm -f mpm /tmp/mathworks_root.log \
&& ln -s /opt/matlab/bin/matlab /usr/local/bin/matlab

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!