フィルターのクリア

How to use matlab drive inside a matlab docker container?

5 ビュー (過去 30 日間)
Muhammad Atif Ali
Muhammad Atif Ali 2022 年 8 月 3 日
コメント済み: Tian Wang 2022 年 8 月 10 日
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 日
編集済み: 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 Center および File ExchangeContainers についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by