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
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,14 @@ cd matlab-dockerfile
35
35
36
36
Build container with a name and tag of your choice.
37
37
```bash
38
-
docker build -t matlab:R2025a.
38
+
docker build -t matlab:R2025b.
39
39
```
40
40
41
41
Run the container. Test the container by running an example MATLAB command, such as `ver`.
42
42
```bash
43
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
43
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025b -batch ver
44
44
```
45
-
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2025a.
45
+
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2025b.
46
46
47
47
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.
48
48
@@ -65,9 +65,9 @@ The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/ma
65
65
66
66
| Argument Name | Default value | Description |
67
67
|---|---|---|
68
-
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2025a| MATLAB release to install, for example, `R2023b`.|
68
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2025b| MATLAB release to install, for example, `R2023b`.|
69
69
|[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).|
70
-
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/R2025a| Path to install MATLAB. |
70
+
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/R2025b| Path to install MATLAB. |
71
71
|[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`|
72
72
73
73
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.
@@ -140,41 +140,41 @@ With the `docker build` command, either:
140
140
141
141
```bash
142
142
# Example
143
-
docker build -t matlab:R2025a.
143
+
docker build -t matlab:R2025b.
144
144
```
145
145
146
146
With the `docker run` command, use the `MLM_LICENSE_FILE` environment variable.
147
147
148
148
```bash
149
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
149
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025b -batch ver
150
150
```
151
151
152
152
## Run the Container
153
153
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`.
154
154
155
155
```bash
156
156
# Start MATLAB, print version information, and exit.
157
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
157
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025b -batch ver
158
158
```
159
159
160
160
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.
161
161
162
162
### Run MATLAB in an Interactive Command Prompt
163
163
To start the container and run MATLAB in an interactive command prompt, use this command.
164
164
```bash
165
-
docker run --init -it --rm matlab:R2025a
165
+
docker run --init -it --rm matlab:R2025b
166
166
```
167
167
### Run MATLAB in Batch Mode
168
168
To start the container, run a MATLAB command, and then exit, use this command.
169
169
```bash
170
170
# Container runs the command RAND in MATLAB and exits.
171
-
docker run --init --rm matlab:R2025a -batch rand
171
+
docker run --init --rm matlab:R2025b -batch rand
172
172
```
173
173
174
174
### Run MATLAB with Startup Options
175
175
To override the default behavior of the container and run MATLAB with any set of arguments, such as `-logfile`, use this command.
176
176
```bash
177
-
docker run --init -it --rm matlab:R2025a -logfile "logfilename.log"
177
+
docker run --init -it --rm matlab:R2025b -logfile "logfilename.log"
178
178
```
179
179
To learn more, see the documentation: [Commonly Used Startup Options](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html).
180
180
@@ -192,7 +192,7 @@ For some workflows and toolboxes, you must specify dependencies. You must do thi
192
192
* Use the MATLAB Engine API for C and Fortran®
193
193
* Use the Polyspace® 32-bit tcc compiler
194
194
195
-
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).
195
+
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 R2025b, click [here](https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2025b/ubuntu24.04/Dockerfile).
196
196
197
197
These Dockerfiles contain commented lines with the libraries that support additional capabilities. Copy and uncomment these lines into your Dockerfile.
Copy file name to clipboardExpand all lines: alternates/building-on-matlab-docker-image/README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
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:R2025a.
28
+
docker build -t matlab_with_add_ons:R2025b.
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:R2025a -batch ver
33
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab_with_add_ons:R2025b -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:R2025a -browser
39
+
docker run --init --rm -it -p 8888:8888 matlab_with_add_ons:R2025b -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)|R2025a| MATLAB release to install, for example, `R2023b`.|
70
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2025b| 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