Main Content

compiler.runtime.createInstallerDockerImage

Create a MATLAB Runtime installer Docker image on offline machines

Since R2022b

Description

example

Note

You do not need to run this command if you are connected to the Docker® image repository.

compiler.runtime.createInstallerDockerImage() creates a MATLAB® Runtime installer Docker image using the installer file provided by the compiler.runtime.installer function, in cases where MATLAB is unable to reach the Docker image repository. The installer image is used to create microservice Docker images using compiler.package.docker and compiler.package.microserviceDockerImage. This workflow is only supported on Linux®.

example

compiler.runtime.createInstallerDockerImage(filepath) creates a MATLAB Runtime installer Docker image using the installer file provided by filepath. This workflow is supported on all platforms.

Examples

collapse all

Here, you create a MATLAB Runtime installer Docker image on Linux.

Install and configure Docker on your system.

Create the Docker image.

compiler.runtime.createInstallerDockerImage()

Here, you create a MATLAB Runtime installer Docker image on Windows® for R2024a.

Install and configure Docker on your system. For details, see the prerequisites section of Create Microservice Docker Image.

Download the MATLAB Runtime installer for Linux for the R2024a release from https://www.mathworks.com/products/compiler/matlab-runtime.html.

Create the Docker image using the path to the installer archive. For example, if it is located in the Downloads folder of mwuser, type the following command.

compiler.runtime.createInstallerDockerImage("C:\Users\mwuser\Downloads\MATLAB_Runtime_R2024a_glnxa64.zip")

Input Arguments

collapse all

Path to the MATLAB Runtime installer file for Linux, specified as a character vector or string scalar. The path can be relative to the current working directory or absolute.

Example: "C:\Users\mwuser\Downloads\MATLAB_Runtime_R2022b_Update_1_glnxa64.zip"

Data Types: char | string

Version History

Introduced in R2022b