Is it possible to install matlab in a docker image?

670 views (last 30 days)
Brando Miranda
Brando Miranda on 27 Mar 2017
Edited: David Willingham on 14 Oct 2021
I wanted to install my matlab in a docker image. Is that possible?
  4 Comments
Cédric
Cédric on 10 Apr 2019
Hello, I would also be interested in that workflow. Is there any updates on this topic?

Sign in to comment.

Answers (5)

David Willingham
David Willingham on 7 Apr 2021
Edited: David Willingham on 14 Oct 2021
In addition to GitHub, the MATLAB container is also now available in dockerhub!
There's also the Deep Learning container that includes more toolboxes:
  2 Comments
David Willingham
David Willingham on 14 Oct 2021
Hi Daijiry, the docker image is based on Linux but you can run it with X11. HAve you tried this?
Run MATLAB desktop using X11
To start the container and run MATLAB desktop using X11, execute:
$ xhost +
$ docker run --gpus all -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --shm-size=512M mathworks/matlab-deep-learning:r2021b
The MATLAB desktop window should open on your machine. Note that the command above works only on a Linux operating system with X11 and its dependencies installed.

Sign in to comment.


Scott
Scott on 18 Oct 2019
Edited: Scott on 18 Oct 2019
It is possible to create a Docker container image for MATLAB, Simulink, and any toolboxes you are using. Instructions for this can be found on GitHub:
  7 Comments
Walter Roberson
Walter Roberson on 9 May 2021
Sorry, not something I have ever worked with myself.

Sign in to comment.


Brian Lerner
Brian Lerner on 2 Aug 2018
Hello Matlab support. We are very interested in this functionality. can you please advise the best way to do this?

Walter Roberson
Walter Roberson on 28 Mar 2017
  2 Comments

Sign in to comment.


Tags

Products

Community Treasure Hunt

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

Start Hunting!