Docker image with enough dependencies to support a mounted-in Matlab.
6.1K
Docker image with enough dependencies to support a mounted-in Matlab.
This docker image gives you an Ubuntu environment capable of supporting Matlab. For licensing reasons, you must already have your own Matlab installed on the Docker host.
To run Matlab inside the container, you have to provide three things at launch time:
/usr/local/MATLAB/from-host./var/log/matlab.These expect you to define some local information:
MATLAB_ROOT is your matlab installation on the Docker host, perhaps /usr/local/MATLAB/R2016a.MATLAB_LOGS is optional path on the Docker host to receive Matlab logs, perhaps ~/matlab-logs.MATLAB_MAC_ADDRESS is the MAC address associated with your own Matlab License, of the form 00:00:00:00:00:00.docker run --rm -v "$MATLAB_ROOT":/usr/local/MATLAB/from-host -v "$MATLAB_LOGS":/var/log/matlab --mac-address="$MATLAB_MAC_ADDRESS" ninjaben/matlab-support
docker run --rm -v "$MATLAB_ROOT":/usr/local/MATLAB/from-host -v "$MATLAB_LOGS":/var/log/matlab --mac-address="$MATLAB_MAC_ADDRESS" ninjaben/matlab-support -r "version,exit;"
docker run --rm -v "$MATLAB_ROOT":/usr/local/MATLAB/from-host -v "$MATLAB_LOGS":/var/log/matlab --mac-address="$MATLAB_MAC_ADDRESS" ninjaben/matlab-support -r "plot(1:10);print('/var/log/matlab/figure.png', '-dpng');exit;"
Thanks to Michael Perry at Stanford for info, inspiration, starter code!
Content type
Image
Digest
Size
191.4 MB
Last updated
about 10 years ago
docker pull ninjaben/matlab-support