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
@@ -27,14 +27,14 @@ cd matlab-dockerfile
27
27
28
28
Build container with a name and tag of your choice.
29
29
```bash
30
-
docker build -t matlab:r2023b.
30
+
docker build -t matlab:r2024a.
31
31
```
32
32
33
33
Run the container. Test the container by running an example MATLAB command such as ver.
34
34
```bash
35
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2023b -batch ver
35
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2024a -batch ver
36
36
```
37
-
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2023b.
37
+
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2024a.
38
38
39
39
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 section on [Running the Container](#run-the-container).
40
40
@@ -57,9 +57,9 @@ The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/ma
57
57
58
58
| Argument Name | Default value | Description |
59
59
|---|---|---|
60
-
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|r2023b| The MATLAB release you want to install, in lower-case. For example: `r2019b`|
60
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|r2024a| The MATLAB release you want to install, in lower-case. For example: `r2019b`|
61
61
|[MATLAB_PRODUCT_LIST](#build-an-image-with-a-specific-set-of-products)| MATLAB | Products to install as a space-separated list. For more information, see [MPM.md](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md). For example: `MATLAB Simulink Deep_Learning_Toolbox Fixed-Point_Designer`|
62
-
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/r2023b| The path to install MATLAB. |
62
+
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/r2024a| The path to install MATLAB. |
63
63
|[LICENSE_SERVER](#build-an-image-with-license-server-information)|*unset*| The port and hostname of the machine that is running the Network License Manager, using the `port@hostname` syntax. For example: `27000@MyServerName`|
64
64
65
65
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.
@@ -133,41 +133,41 @@ With the `docker build` command, either:
133
133
134
134
```bash
135
135
# Example
136
-
docker build -t matlab:r2023b.
136
+
docker build -t matlab:r2024a.
137
137
```
138
138
139
139
With the `docker run` command, use the `MLM_LICENSE_FILE` environment variable. For example:
140
140
141
141
```bash
142
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2023b -batch ver
142
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2024a -batch ver
143
143
```
144
144
145
145
## Run the Container
146
146
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`.
147
147
148
148
```bash
149
149
# Start MATLAB, print version information, and exit:
150
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2023b -batch ver
150
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2024a -batch ver
151
151
```
152
152
153
153
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.
154
154
155
155
### Run MATLAB in an Interactive Command Prompt
156
156
To start the container and run MATLAB in an interactive command prompt, execute:
157
157
```bash
158
-
docker run --init -it --rm matlab:r2023b
158
+
docker run --init -it --rm matlab:r2024a
159
159
```
160
160
### Run MATLAB in Batch Mode
161
161
To start the container, run a MATLAB command, and then exit, execute:
162
162
```bash
163
163
# Container runs the command RAND in MATLAB and exits.
164
-
docker run --init --rm matlab:r2023b -batch rand
164
+
docker run --init --rm matlab:r2024a -batch rand
165
165
```
166
166
167
167
### Run MATLAB with Startup Options
168
168
To override the default behavior of the container and run MATLAB with any set of arguments, such as `-logfile`, execute:
169
169
```bash
170
-
docker run --init -it --rm matlab:r2023b -logfile "logfilename.log"
170
+
docker run --init -it --rm matlab:r2024a -logfile "logfilename.log"
171
171
```
172
172
To learn more, see the documentation: [Commonly Used Startup Options](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html).
173
173
@@ -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-deps repository](https://github.com/mathworks-ref-arch/container-images/tree/main/matlab-deps) repository lists Dockerfiles for various releases and platforms. To view the Dockerfile for R2023b, click [here](https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2023b/ubuntu22.04/Dockerfile).
195
+
The [matlab-deps repository](https://github.com/mathworks-ref-arch/container-images/tree/main/matlab-deps) repository lists Dockerfiles for various releases and platforms. To view the Dockerfile for R2024a, click [here](https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2024a/ubuntu22.04/Dockerfile).
196
196
197
197
These Dockerfiles contain commented lines with the libraries that support these 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:r2023b.
28
+
docker build -t matlab_with_add_ons:r2024a.
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:r2023b -batch ver
33
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab_with_add_ons:r2024a -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:r2023b -browser
39
+
docker run --init --rm -it -p 8888:8888 matlab_with_add_ons:r2024a -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™:
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)|r2023b| The MATLAB release to install. Must be lower-case, for example: `r2020b`.|
70
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|r2024a| The MATLAB release to install. Must be lower-case, for example: `r2020b`.|
71
71
|[ADDITIONAL_PRODUCTS](#customize-products-to-install-using-matlab-package-manager-mpm)| "Symbolic_Math_Toolbox Deep_Learning_Toolbox_Model_for_ResNet-50_Network" | A 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*| The 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
@@ -95,12 +95,12 @@ server or browser mode will not start successfully.
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)| latest | The MATLAB release you want to install. Must be lower-case, for example: `r2023b`. |
77
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)| latest | The MATLAB release you want to install. Must be lower-case, for example: `r2024a`. |
78
78
|[LICENSE_SERVER](#build-an-image-with-license-server-information)|_unset_| The port and hostname of the machine running the Network License Manager, using the `port@hostname` syntax. For example: `27000@MyServerName`|
79
79
80
80
Use these arguments with the `docker build` command to customize your image. Run a command from the `alternates/matlab-installer` of the cloned repository of the form:
0 commit comments