Main Content

MATLAB Runtime Container

MATLAB® Runtime is a standalone set of shared libraries that enables the execution of compiled MATLAB applications or components on computers that do not have MATLAB installed. It's a way to distribute MATLAB code to other users, even if they don't have MATLAB installed themselves. The compiled applications and components are created using MATLAB Compiler™ and MATLAB Compiler SDK™.

You can download a MATLAB Runtime container from the MathWorks® container registry for use in your development environment. This may be particularly helpful in CI/CD pipelines where you can streamline integration by enabling quick pulls of the MATLAB Runtime container whenever needed. At present, when fetching a MATLAB Runtime image using Docker® on any system, the image retrieved is always based on Linux®.

Starting in R2024b, there are two images available: A full MATLAB Runtime image with GPU support and an image without GPU libraries.

Contents

MATLAB Runtime container includes:

  • Ubuntu® Linux base image.

  • MATLAB Runtime.

  • Dependencies to run MathWorks products.

Requirements

To use a MATLAB Runtime container, you need:

  • A host machine with Docker installed.

Download Full MATLAB Runtime Image

In releases prior to R2024b, to download a full MATLAB Runtime container image that contains GPU libraries, execute the following command at a system terminal:

docker pull containers.mathworks.com/matlab-runtime:<releaseName>
The term releaseName refers to the specific version of the MATLAB release. It is denoted with a lowercase r followed by the year and edition of the release. For instance, if you want a MATLAB Runtime container for the second edition of the 2023 release, you would specify it as r2023b.

Starting in R2024b, download a full MATLAB Runtime container image that contains GPU libraries by executing the following command at a system terminal:

docker pull containers.mathworks.com/matlab-runtime:<releaseName>-full

The URL has the suffix -full to distinguish it from the image without GPU support.

Download MATLAB Runtime Without GPU Libraries

Since R2024b

To download a MATLAB Runtime container image for R2024b that does not include any GPU libraries, execute the following command at a system terminal:

docker pull containers.mathworks.com/matlab-runtime:r2024b

Related Topics