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: alternates/non-interactive/README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,10 @@ Build a container with a name and tag.
28
28
docker build -t matlab-non-interactive:R2025b .
29
29
```
30
30
31
-
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.
31
+
You can then run the container and use the `matlab-batch` command. Test the container by running an example MATLAB command, such as `rand`.
32
32
33
33
```bash
34
-
docker run --init --rm matlab-non-interactive:R2025b matlab-batch -licenseToken "user@email.com::encodedToken""rand"
34
+
docker run --rm matlab-non-interactive:R2025b 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,22 +86,22 @@ 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:R2025b matlab-batch -licenseToken "user@email.com::encodedToken""disp('Hello, World.')"
89
+
docker run --rm matlab-non-interactive:R2025b 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:R2025b matlab-batch "disp('Hello, World.')"
96
+
docker run --rm -e MLM_LICENSE_TOKEN matlab-non-interactive:R2025b matlab-batch "disp('Hello, World.')"
97
97
```
98
98
99
99
## Run the Container
100
100
This Dockerfile's default entry-point is a shell session. After you start the container, use `matlab-batch` to start MATLAB with a MATLAB batch licensing token.
101
101
102
102
```bash
103
103
# Launch MATLAB, print Hello, World., and exit:
104
-
docker run --init --rm matlab-non-interactive:R2025b matlab-batch -licenseToken "user@email.com::encodedToken" "disp('Hello, World.')"
104
+
docker run --rm matlab-non-interactive:R2025b 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.
@@ -111,15 +111,15 @@ 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