- --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 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Pablo Cordova Montecinos
il 24 Ott 2024 alle 1:25
Commentato: Hitesh
il 25 Ott 2024 alle 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 Commenti
Risposta accettata
Hitesh
il 24 Ott 2024 alle 4:34
Modificato: Hitesh
il 25 Ott 2024 alle 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 Commenti
Hitesh
il 25 Ott 2024 alle 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.
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!