Problems running docker image from linux x11 host

17 vues (au cours des 30 derniers jours)
Mattia
Mattia le 7 Juin 2025
Réponse apportée : Mattia le 13 Août 2025 à 10:12
Hi everyone
I am a linux user and i have an arch installation running with X11 desktop management on my pc. I always struggled to run matlab on my laptop (interface wont open and stuff like that) since arch is not officially supported and i deferred to using the online version. After a bit i fixed the problems and started using the desktop version without issue up untill the last month when the glibc packag updated to the 2.4.1 while matlab needs the 2.4.0 and everythng broke again. Tired of all these problems i decided to opt for the dockerized version, i downloded the official ubuntu 24.04 docker from the docker hub and as said in the website i ran the following commands:
$ xhost +
$ docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --shm-size=512M mathworks/matlab:r2025a
and the terminal is hanging and no interface is opening. I thought it might be a licencing problem but my licence is given from my university and i dont know how to retreive the licence file. Can someone help me fix the problem (and identify it if its different from my suppositions)?
Also extra quick question, after solving this problem how do i download add-ons and libs? Same as in the desktop version?
Thanks in advance :)

Réponse acceptée

Jacob Mathew
Jacob Mathew le 9 Juin 2025
Hey Mattia,
You can use the following resources to setup the Docker Image for MATLAB & Simulink and the toolboxes you require:
The Readme goes into detail of build instructions including how to link your license.

Plus de réponses (1)

Mattia
Mattia le 13 Août 2025 à 10:12
ty, i was finaly able to have the time and work on it and now i am able to run the container. I am now facinga a new problem since when i open the container matlab opens fine and everything but no login prompt opens and after the gui is loaded the program closes with a licencing error, what can i do to solve it?

Catégories

En savoir plus sur Containers dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by