Main Content

Update MATLAB Release on MATLAB Online Server

MathWorks® might release MATLAB® updates following the general release. An update is an incremental update to the current release. An upgrade is a change from one major release to the next.

Use this procedure to apply MATLAB release updates to a MATLAB Online Server™ instance.

  1. On your license server, update the license manager software to the latest version by following the instructions in Update Network License Manager Software.

  2. On a Linux® machine, download and then install the latest MATLAB update for the release of your MATLAB Online Server installation.

  3. Create a backup of the working MATLAB image. If the MATLAB update is not successful, you need the backup image to restore MATLAB in MATLAB Online Server.

    To create a backup, you can either push the MATLAB image to another repository or push it to the same repository but with a different tag. The commands shown here assume you are using Docker® as your container management tool. If you are using Podman instead, replace docker with podman in the commands.

    • You can use the following commands to save a backup of the existing MATLAB image:

      docker tag <image-name>:<tag-name> <image-name>:<updated-tag-name>

      For example:

      docker tag containers.mathworks.com/matlab-online-server/mos-matlab-image:1.13.0
      containers.mathworks.com/matlab-online-server/mos-matlab-image:1.13.0-backup

    • For a remote registry, run the following command also:

      docker push <image-name>:<updated-tag-name>
      For a remote registry, the two commands together might look similar to this example:
      docker tag remote-registry.com/matlab-online-server/mos-matlab-image:1.13.0 
      remote-registry.com /matlab-online-server/mos-matlab-image:1.13.0-backup
      
      docker push remote-registry.com /matlab-online-server/mos-matlab-image:1.13.0-backup

  4. Use mosadm to build a new MATLAB Docker image. Run this command, replacing <matlabroot> with your actual MATLAB root installation location:

    mosadm build-matlab-image <matlabroot>
    For example:
    mosadm build-matlab-image /MATLAB

    This command overrides the existing MATLAB image.

  5. Use mosadm to redeploy the MATLAB Pool pod using the following commands:

    mosadm undeploy matlab-pool
    mosadm deploy matlab-pool

Related Topics