You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -33,14 +33,14 @@ cd matlab-dockerfile
33
33
34
34
Build container with a name and tag of your choice.
35
35
```bash
36
-
docker build -t matlab:R2024b.
36
+
docker build -t matlab:R2025a.
37
37
```
38
38
39
39
Run the container. Test the container by running an example MATLAB command, such as `ver`.
40
40
```bash
41
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024b -batch ver
41
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
42
42
```
43
-
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2024b.
43
+
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2025a.
44
44
45
45
The example command `ver` displays the version number of MATLAB and other installed products. For more information, see [`ver`](https://www.mathworks.com/help/matlab/ref/ver.html). For more information on running the container, see the [Run the Container](#run-the-container) section.
46
46
@@ -63,9 +63,9 @@ The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/ma
63
63
64
64
| Argument Name | Default value | Description |
65
65
|---|---|---|
66
-
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2024b| MATLAB release to install, for example, `R2023b`.|
66
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2025a| MATLAB release to install, for example, `R2023b`.|
67
67
|[MATLAB_PRODUCT_LIST](#build-an-image-with-a-specific-set-of-products)| MATLAB | Space-separated list of products to install, for example, `MATLAB Simulink Deep_Learning_Toolbox Fixed-Point_Designer`. For more information, see [MPM.md](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md).|
68
-
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/R2024b| Path to install MATLAB. |
68
+
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/R2025a| Path to install MATLAB. |
69
69
|[LICENSE_SERVER](#build-an-image-configured-to-use-a-license-server)|*unset*| Port and hostname of the machine that is running the network license manager, using the `port@hostname` syntax. For example: `27000@MyServerName`|
70
70
71
71
Use these arguments with the the `docker build` command to customize your image.
1. Place the `network.lic` file in the same folder as the Dockerfile.
@@ -138,41 +138,41 @@ With the `docker build` command, either:
138
138
139
139
```bash
140
140
# Example
141
-
docker build -t matlab:R2024b.
141
+
docker build -t matlab:R2025a.
142
142
```
143
143
144
144
With the `docker run` command, use the `MLM_LICENSE_FILE` environment variable.
145
145
146
146
```bash
147
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024b -batch ver
147
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
148
148
```
149
149
150
150
## Run the Container
151
151
If you did not provide the license server information when building the image, then provide it when running the container. Set the environment variable `MLM_LICENSE_FILE` using the `-e` flag, with the network license manager's location in the format `port@hostname`.
152
152
153
153
```bash
154
154
# Start MATLAB, print version information, and exit.
155
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024b -batch ver
155
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
156
156
```
157
157
158
158
You can run the container **without** specifying `MLM_LICENSE_FILE` if you provided the license server information when building the image, as shown in the examples below.
159
159
160
160
### Run MATLAB in an Interactive Command Prompt
161
161
To start the container and run MATLAB in an interactive command prompt, use this command.
162
162
```bash
163
-
docker run --init -it --rm matlab:R2024b
163
+
docker run --init -it --rm matlab:R2025a
164
164
```
165
165
### Run MATLAB in Batch Mode
166
166
To start the container, run a MATLAB command, and then exit, use this command.
167
167
```bash
168
168
# Container runs the command RAND in MATLAB and exits.
169
-
docker run --init --rm matlab:R2024b -batch rand
169
+
docker run --init --rm matlab:R2025a -batch rand
170
170
```
171
171
172
172
### Run MATLAB with Startup Options
173
173
To override the default behavior of the container and run MATLAB with any set of arguments, such as `-logfile`, use this command.
174
174
```bash
175
-
docker run --init -it --rm matlab:R2024b -logfile "logfilename.log"
175
+
docker run --init -it --rm matlab:R2025a -logfile "logfilename.log"
176
176
```
177
177
To learn more, see the documentation: [Commonly Used Startup Options](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html).
178
178
@@ -190,7 +190,7 @@ For some workflows and toolboxes, you must specify dependencies. You must do thi
190
190
* Use the MATLAB Engine API for C and Fortran®
191
191
* Use the Polyspace® 32-bit tcc compiler
192
192
193
-
The [MATLAB Dependencies repository](https://github.com/mathworks-ref-arch/container-images/tree/main/matlab-deps) lists Dockerfiles for various releases and platforms. To view the Dockerfile for R2024b, click [here](https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2024b/ubuntu22.04/Dockerfile).
193
+
The [MATLAB Dependencies repository](https://github.com/mathworks-ref-arch/container-images/tree/main/matlab-deps) lists Dockerfiles for various releases and platforms. To view the Dockerfile for R2025a, click [here](https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2025a/ubuntu22.04/Dockerfile).
194
194
195
195
These Dockerfiles contain commented lines with the libraries that support additional capabilities. Copy and uncomment these lines into your Dockerfile.
196
196
@@ -207,6 +207,6 @@ We encourage you to try this repository with your environment and provide feedba
Copy file name to clipboardExpand all lines: alternates/building-on-matlab-docker-image/README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -25,18 +25,18 @@ cd matlab-dockerfile/alternates/building-on-matlab-docker-image
25
25
### Quick Start
26
26
Build a container with a name and tag.
27
27
```bash
28
-
docker build -t matlab_with_add_ons:R2024b.
28
+
docker build -t matlab_with_add_ons:R2025a.
29
29
```
30
30
31
31
You can then run the container with the `batch` option. Test the container by running an example MATLAB command, such as `ver`, to display the installed toolboxes.
32
32
```bash
33
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab_with_add_ons:R2024b -batch ver
33
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab_with_add_ons:R2025a -batch ver
34
34
```
35
35
You can check the installed support packages using the MATLAB command `matlabshared.supportpkg.getInstalled`.
36
36
37
37
You can also run the container with the `browser` option to access MATLAB in a browser.
38
38
```bash
39
-
docker run --init --rm -it -p 8888:8888 matlab_with_add_ons:R2024b -browser
39
+
docker run --init --rm -it -p 8888:8888 matlab_with_add_ons:R2025a -browser
40
40
```
41
41
For more information, see [Run the Container](#run-the-container).
42
42
@@ -51,7 +51,7 @@ The `ADDITIONAL_PRODUCTS` argument must be a space-separated list surrounded by
51
51
By default, `ADDITIONAL_PRODUCTS` includes example products, which you can replace.
52
52
For example, to build an image containing MATLAB and the Deep Learning Toolbox™, use this command.
For a successful build, include at least one product.
@@ -67,7 +67,7 @@ The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/ma
67
67
68
68
| Argument Name | Default value | Effect |
69
69
|---|---|---|
70
-
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2024b| MATLAB release to install, for example, `R2023b`.|
70
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2025a| MATLAB release to install, for example, `R2023b`.|
71
71
|[ADDITIONAL_PRODUCTS](#customize-products-to-install-using-matlab-package-manager-mpm)|`Symbolic_Math_Toolbox Deep_Learning_Toolbox_Model_for_ResNet-50_Network`| Space-separated list of toolboxes and support packages to install. For more details, see [MATLAB Package Manager](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md).|
72
72
|[LICENSE_SERVER](#build-an-image-with-license-server-information)|*unset*| Port and hostname of a machine that is running a Network License Manager, using the `port@hostname` syntax, for example, `27000@MyServerName`. To use this build argument, the corresponding lines must be uncommented in the Dockerfile. |
73
73
@@ -94,12 +94,12 @@ server or the browser mode will not start successfully.
0 commit comments