Are there ways to change a port number of a container of docker matlab container?

6 ビュー (過去 30 日間)
Hello, matlab experts!
According to matlab docker hub, I'm running matlab and interacting with it via a web browser of port 8888.
As a server manager of our lab, I want to make several ports for many people to use matlab via their own web browser.
However, even if I change the port number, 8888 is the only port number that is generated.
The code used and its results are as follows.
sudo docker run --gpus all -it --rm -p 8889:8889 --shm-size=512M mathworks/matlab-deep-learning:r2022b -browser
Are there ways to change a port number of a container of docker matlab container?
Or are there ways for multiple users to use docker matlab?
Any answer will be helpful for me!

採用された回答

Sourabh Kondapaka
Sourabh Kondapaka 2022 年 11 月 4 日
The port number inside the docker container can be changed by setting the MWI_APP_PORT environment variable when launching the container:
sudo docker run --gpus all -it --rm -e MWI_APP_PORT=8889 -p 8889:8889 --shm-size=512M mathworks/matlab-deep-learning:r2022b -browser
With this, you can access MATLAB at http://0.0.0.0:8889/
For more information on the available environment variables, see Advanced-Usage.md
You can raise an issue on the matlab-proxy repository on github if you face any difficulty.
  1 件のコメント
Sunghyoung Hong
Sunghyoung Hong 2022 年 11 月 6 日
I appreciate @Sourabh Kondapaka!
Thanks to you our lab members can efficiently use Matlab.
Best regards,
Sunghyoung Hong.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContainers についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by