- --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?
62 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Pablo Cordova Montecinos
le 24 Oct 2024 à 1:25
Commenté : Hitesh
le 25 Oct 2024 à 4:23
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 commentaires
Réponse acceptée
Hitesh
le 24 Oct 2024 à 4:34
Modifié(e) : Hitesh
le 25 Oct 2024 à 4:13
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 commentaires
Hitesh
le 25 Oct 2024 à 4:23
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.
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!