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
Original file line number
Diff line number
Diff line change
@@ -36,14 +36,14 @@ cd matlab-dockerfile
36
36
37
37
Build container with a name and tag of your choice.
38
38
```bash
39
-
docker build -t matlab:R2024a.
39
+
docker build -t matlab:R2024b.
40
40
```
41
41
42
42
Run the container. Test the container by running an example MATLAB command such as ver.
43
43
```bash
44
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024a -batch ver
44
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024b -batch ver
45
45
```
46
-
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2024a.
46
+
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2024b.
47
47
48
48
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).
49
49
@@ -66,9 +66,9 @@ The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/ma
66
66
67
67
| Argument Name | Default value | Description |
68
68
|---|---|---|
69
-
|[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`|
69
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2024b| The MATLAB release you want to install, in lower-case. For example: `R2019b`|
70
70
|[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`|
71
-
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/R2024a| The path to install MATLAB. |
71
+
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/R2024b| The path to install MATLAB. |
72
72
|[LICENSE_SERVER](#build-an-image-configured-to-use-a-license-server)|*unset*| The port and hostname of the machine that is running the Network License Manager, using the `port@hostname` syntax. For example: `27000@MyServerName`|
73
73
74
74
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.
@@ -142,41 +142,41 @@ With the `docker build` command, either:
142
142
143
143
```bash
144
144
# Example
145
-
docker build -t matlab:R2024a.
145
+
docker build -t matlab:R2024b.
146
146
```
147
147
148
148
With the `docker run` command, use the `MLM_LICENSE_FILE` environment variable. For example:
149
149
150
150
```bash
151
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024a -batch ver
151
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024b -batch ver
152
152
```
153
153
154
154
## Run the Container
155
155
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`.
156
156
157
157
```bash
158
158
# Start MATLAB, print version information, and exit:
159
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024a -batch ver
159
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024b -batch ver
160
160
```
161
161
162
162
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.
163
163
164
164
### Run MATLAB in an Interactive Command Prompt
165
165
To start the container and run MATLAB in an interactive command prompt, execute:
166
166
```bash
167
-
docker run --init -it --rm matlab:R2024a
167
+
docker run --init -it --rm matlab:R2024b
168
168
```
169
169
### Run MATLAB in Batch Mode
170
170
To start the container, run a MATLAB command, and then exit, execute:
171
171
```bash
172
172
# Container runs the command RAND in MATLAB and exits.
173
-
docker run --init --rm matlab:R2024a -batch rand
173
+
docker run --init --rm matlab:R2024b -batch rand
174
174
```
175
175
176
176
### Run MATLAB with Startup Options
177
177
To override the default behavior of the container and run MATLAB with any set of arguments, such as `-logfile`, execute:
178
178
```bash
179
-
docker run --init -it --rm matlab:R2024a -logfile "logfilename.log"
179
+
docker run --init -it --rm matlab:R2024b -logfile "logfilename.log"
180
180
```
181
181
To learn more, see the documentation: [Commonly Used Startup Options](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html).
182
182
@@ -194,7 +194,7 @@ For some workflows and toolboxes, you must specify dependencies. You must do thi
194
194
* Use the MATLAB Engine API for C and Fortran®.
195
195
* Use the Polyspace® 32-bit tcc compiler.
196
196
197
-
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).
197
+
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 R2024b, click [here](https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2024b/ubuntu22.04/Dockerfile).
198
198
199
199
These Dockerfiles contain commented lines with the libraries that support these additional capabilities. Copy and uncomment these lines into your Dockerfile.
0 commit comments