How is GUI output show on my windows host when im using docker image of MATLAB?

14 次查看(过去 30 天)
I ran a simple graph plot function from my headless MATLAB running in my VS Code terminal (connected the matlab container through remote development extension) the graph plot pops up on my screen {Host machine :- Windows ] . I checked what is making container run GUI on my system that i have wsl app ( provided by microsft ) installed with Ubuntu Distro running/active on my windows host machine without this setting it doesnt run .
But i want to understand what is present inside the image of matlab that is making this possible .
I have novnc server running in my other image ( custom made ) but it doesnt work, i.e GUI output is not shown .
Also I dont have any X server running on my host machine .
The things i understood are linux distributions by default has X serever running .... that would be making it run ... but whats inside the image that is making it run .
I reallt wqant to replicate this

回答(1 个)

Jacob Mathew
Jacob Mathew 2025-6-11
Hey Omkar,
I am not sure what you mean by "whats inside the MATLAB image that makes the GUI run" as the docker images available contain the complete MATLAB standalone installation. While you can customise the Toolboxes and Support Packages, the base image itself is a complete standalone MATLAB instance which includes the MATLAB Desktop GUI too.
The easiest way to access the GUI is to pass the --browser flag which allows you to access the GUI through your browser removing any need to have VNC, X Server or other software requirements. You can read more about running the image and additional command line arguments at the documentation link below:

类别

Help CenterFile Exchange 中查找有关 Containers 的更多信息

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by