How to use matlab drive inside a matlab docker container?

4 次查看(过去 30 天)
How to use matlab drive inside a matlab docker container?
I am runniing matlab container in browser using the command.
docker run -it --rm -p 8888:8888 --shm-size=512M mathworks/matlab:r2022a -browser
I want to get access to my matlab drive inside this.

采纳的回答

Gareth
Gareth 2022-8-4
Hi Muhammad,
While we don't currently have full support for MATLAB Drive in the MATLAB Docker container, here's a partial workaround which may help with your workflow.
This workaround relies on you having MATLAB Drive Connector running on the machine hosting the Docker container. Make a note of the filesystem path that you selected as your MATLAB Drive folder (you can check that path in the MATLAB Drive Connector preferences if required).
Now launch the MATLAB Docker image using the following command, replacing "<path to MATLAB Drive folder on host>" with the actual filesystem path noted above.
docker run -it --rm -p 8888:8888 --shm-size=512M -v <path to MATLAB Drive folder on host>:/"MATLAB Drive" -e MW_MATLAB_DRIVE_FOLDER_LOCATION="/MATLAB Drive" mathworks/matlab:r2022a -browser
I have highlighted the changes to the command that you originally ran in bold.
Not all MATLAB Drive functionality will be available, but you will at least have read access to your MATLAB Drive files and can use the matlabdrive MATLAB function in the container.
Best wishes,
Gareth
  2 个评论
Muhammad Atif Ali
编辑:Muhammad Atif Ali 2022-8-5
Thank you Gareth. If I launch the container using the -vnc flag and connect to it using a vnc client. Is it possibel to install and get full matlab drive support?
Also I would suggest to include matlab drive awhenever a user signs in to matlab.
Tian Wang
Tian Wang 2022-8-10
Hi Muhammad,
Thanks for bringing this issue into our attention. At the moment you should be able to install and use MATLAB Drive inside the matlab-docker container under the -vnc mode.
Once you open the MATLAB Desktop inside the container, please follow the workflow described in the following link to have MATLAB Drive installed:
You should then be able to read and write files within your MATLAB Drive.
Best wishes,
Tian

请先登录,再进行评论。

更多回答(0 个)

类别

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

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by