From 98ac1f8686fa6bedc9e72323d6d0392179e35462 Mon Sep 17 00:00:00 2001 From: Anirudh Kulkarni Date: Thu, 30 Jan 2025 15:27:04 +0000 Subject: [PATCH] Updated README to add information about the --init flag. fixes mathworks-ref-arch/matlab-dockerfile#121 --- alternates/non-interactive/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alternates/non-interactive/README.md b/alternates/non-interactive/README.md index 2811cbe..89281db 100644 --- a/alternates/non-interactive/README.md +++ b/alternates/non-interactive/README.md @@ -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" ```