Closed matifali closed 1 year ago
Why are my toolboxes not installed?
While running withy the -browser
flag I see all toolboxes.
docker run -it --rm -p 8888:8888 --shm-size=512M test-matlab:latest -browser
@matifali I believe there is a minor bug in your Dockerfile
- you have assumed that MATLABROOT
where MATLAB is installed is /opt/matlab
(by specifying --destination=/opt/matlab
in the build file). In fact this is /opt/matlab/R2022b
(as you can see from the image below obtained by running mathworks/matlab:r2022b
with -vnc
and asking what matlabroot
is.
Could you try changing your Dockerfile
to install in the correct location and see if that fixes things?
Also you may find this Dockerfile useful as an example of how to extend the image mathworks/matlab
to incorporate other products and third-party tools.
Thanks @josmartin for pointing that bug. This fixed the issue. But I am wondering why i was able to see all toolboxes in the browser version.
@matifali I suspect that with the -browser
flag they weren't really there (as I'm sure they won't work if installed NOT in $MATLABROOT/toolbox
) but ver
perhaps picked up their existence in the wrong place and wrongly reported it.
I have a custom Dockerfile where I install more toolboxes.
When I launch it using,
I get this,