- --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?
61 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Pablo Cordova Montecinos
el 24 de Oct. de 2024 a las 1:25
Comentada: Hitesh
el 25 de Oct. de 2024 a las 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 comentarios
Respuesta aceptada
Hitesh
el 24 de Oct. de 2024 a las 4:34
Editada: Hitesh
el 25 de Oct. de 2024 a las 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 comentarios
Hitesh
el 25 de Oct. de 2024 a las 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.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!