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
To learn more, see the documentation: [Commonly Used Startup Options](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html).
110
110
@@ -119,15 +119,15 @@ To learn more, see the documentation: [Commonly Used Startup Options](https://ww
MATLAB batch licensing tokens are strings that enable MATLAB to start in non-interactive environments. A token is a unique identifier that grants access to your MATLAB products.
127
127
128
128
MATLAB batch licensing tokens come in two formats:
129
-
-`user@email.com|encodedToken`
130
-
-`user@email.com|label|encodedToken`
129
+
-`user@email.com::encodedToken`
130
+
-`user@email.com::label::encodedToken`
131
131
132
132
These tokens can be used instead of, or in addition to, other types of licensing.
You can then run the container and use the `matlab-batch` command. Test the container by running an example MATLAB command, such as `rand`. Use the --init flag in the docker run command to ensure that the container stops gracefully when a docker stop or docker kill command is issued.
32
32
33
33
```bash
34
-
docker run --init --rm matlab-non-interactive:R2024b matlab-batch -licenseToken "user@email.com|encodedToken""rand"
34
+
docker run --init --rm matlab-non-interactive:R2024b matlab-batch -licenseToken "user@email.com::encodedToken""rand"
35
35
```
36
36
For more information, see [Run the Container](#run-the-container).
37
37
@@ -86,13 +86,13 @@ With the `docker run` command, use one of these options.
86
86
- Specify the `-licenseToken` run-arg.
87
87
```bash
88
88
# Example
89
-
docker run --init --rm matlab-non-interactive:R2024b matlab-batch -licenseToken "user@email.com|encodedToken""disp('Hello, World.')"
89
+
docker run --init --rm matlab-non-interactive:R2024b matlab-batch -licenseToken "user@email.com::encodedToken""disp('Hello, World.')"
90
90
```
91
91
92
92
- Specify the `MLM_LICENSE_TOKEN` environment variable.
docker run --init --rm -e MLM_LICENSE_TOKEN matlab-non-interactive:R2024b matlab-batch "disp('Hello, World.')"
97
97
```
98
98
@@ -101,7 +101,7 @@ This Dockerfile's default entry-point is a shell session. After you start the co
101
101
102
102
```bash
103
103
# Launch MATLAB, print Hello, World., and exit:
104
-
docker run --init --rm matlab-non-interactive:R2024b matlab-batch -licenseToken "user@email.com|encodedToken" "disp('Hello, World.')"
104
+
docker run --init --rm matlab-non-interactive:R2024b matlab-batch -licenseToken "user@email.com::encodedToken" "disp('Hello, World.')"
105
105
```
106
106
107
107
You can set your MATLAB batch licensing token at the container level by setting the `MLM_LICENSE_TOKEN` environment variable, as shown in the examples below.
@@ -110,15 +110,15 @@ You can set your MATLAB batch licensing token at the container level by setting
110
110
To start the container, run a MATLAB command and exit, use this command.
111
111
```bash
112
112
# Container runs the command RAND in MATLAB and exits.
@@ -137,4 +137,4 @@ To learn more, see the documentation: [Help Make MATLAB Even Better - Frequently
137
137
We encourage you to try this repository with your environment and provide feedback. If you encounter a technical issue or have an enhancement request, create an issue [here](https://github.com/mathworks-ref-arch/matlab-dockerfile/issues).
0 commit comments