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.
0 件のコメント
採用された回答
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 件のコメント
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 Exchange で Manage Products についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!