- --rm: Automatically removes the container when it exits.
- -it:Runs the container interactively.
- -v /path_to_your_app:Mounts your local directory to the container. Replace"path_to_your_app"with the path to your application files.
- -w /app:Sets the working directory inside the container to"/app".
- containers.mathworks.com/matlab-runtime:Specify the MATLAB Runtime docker image that you have pulled it.
- ./your_executable: The name of the executable.
What are the parameters to run Matlab runtime container?
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pablo Cordova Montecinos
am 24 Okt. 2024
Kommentiert: Hitesh
am 25 Okt. 2024
What are the parameters needed to run the MATLAB Runtime Docker container? I found the documentation on how to pull the image, but how do I use it to run a container? Could you provide guidance or examples on how to properly execute and utilize the MATLAB Runtime container?
0 Kommentare
Akzeptierte Antwort
Hitesh
am 24 Okt. 2024
Bearbeitet: Hitesh
am 25 Okt. 2024
Hi Pablo,
You need to use the following command to run the MATLAB Runtime Docker container which you have pulled from Docker Hub.
docker run --rm -it -v /path_to_your_app -w /app containers.mathworks.com/matlab-runtime ./your_executable
Refer to the below explanation for understanding of the parameters that are used in the command:
There are some more parameters such as "--name", and "-e" but they are optional, their usage depends on what operation you want to perform on the docker image.
For more information on docker run command, refer to the below MATLAB documentation,
2 Kommentare
Hitesh
am 25 Okt. 2024
Hi Pablo Cordova Montecinos,
According to the documentation, it is only supported for Linux, refer to the below MATLAB documentation:
For the creating standalone Application, refer to the below MATLAB documentation:
I am assuming that you would be using wsl for linux and so check your ".wslconfig" file located in your Windows user directory for misconfigurations. The error is potentially pops out because of the misconfigurations.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!