Skip to content

Commit

Permalink
Updated README to add information about the --init flag.
Browse files Browse the repository at this point in the history
fixes #121
  • Loading branch information
Anirudh Kulkarni authored and prabhakk-mw committed Jan 30, 2025
1 parent 534a96d commit 98ac1f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alternates/non-interactive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ Build a container with a name and tag.
docker build -t matlab-non-interactive:R2024b .
```

You can then run the container and use the `matlab-batch` command. Test the container by running an example MATLAB command, such as `rand`.
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.

```bash
docker run --init --rm matlab-non-interactive:R2024b matlab-batch -licenseToken "user@email.com|encodedToken" "rand"
```
Expand Down

0 comments on commit 98ac1f8

Please sign in to comment.