Not able to login form docker image for 1 month trail subscription?

5 ビュー (過去 30 日間)
Viplav
Viplav 2024 年 9 月 16 日
編集済み: Viplav 2024 年 9 月 17 日
Hi Support team.
I am trying to do MATLAB login from docker image, but my login is failing.
Note:- I am using 1 month free trial login credetials.
Docker file and error image I have given below.
Docker File:-
# Use MATLAB base image from MathWorks
FROM mathworks/matlab:r2023b
# Set the working directory inside the container
WORKDIR /usr/src/matlab
# Copy your MATLAB conversion script to the container
COPY convert_mf4_to_csv.m .
## Environment varibales for MathWorks credentials
ENV MW_USERNAME = "{User_email}"
ENV MW_PASSWORD = "{password}"
# Expose the port for communication (if needed)
EXPOSE 8080
# The default command will pass arguments for input and output paths
CMD ["matlab", "-batch", "convert_mf4_to_csv('/x_input_folder/input_file.mf4', '/x_output_folder/output_file.csv')"]
Error:-
MATLAB is selecting SOFTWARE OPENGL rendering.
Please enter your MathWorks Account email address and press Enter:
Sign-in failed. Would you like to retry? y/n [n]
Docker command I am runing given below:-
docker run --rm -v C:\\Users\\vdube\\Desktop\\workplace\\mf4tocsv\\input_mf4_files:/x_input_folder -v C:\\Users\\vdube\\Desktop\\workplace\\mf4tocsv\\output_csv_folder:/x_output_folder -e MW_USERNAME={email} -e MW_PASSWORD={password} matlab-mf4-converter
Please check attached image.
Any support will be appreciable.
Thanks in Advance!!

回答 (1 件)

Prabhakar
Prabhakar 2024 年 9 月 16 日
AFAIK, It is not possible for you to use your Online Licensing credentials non-interactively.
I also do not recognize these environment variables:
ENV MW_USERNAME = "{User_email}"
ENV MW_PASSWORD = "{password}"
Could you please verify that you are able to run the container interactively using your online licensing credentials? By running the container as shown below:
docker build -t mymatlab .
docker run -it --rm mymatlab
  1 件のコメント
Viplav
Viplav 2024 年 9 月 17 日
編集済み: Viplav 2024 年 9 月 17 日
Thanks AFAIK for responce!
After building and running the docker I can able to sign in. I cant see any sign in message. Below is the screen shot attached.
I had less confidence on below env variable too. I removed it from my dockerfile and passing cred from docker ru command as given below
ENV MW_USERNAME = "{User_email}"
ENV MW_PASSWORD = "{password}"
docker run --rm -v C:\\Users\\vdube\\Desktop\\workplace\\mf4tocsv\\input_mf4_files:/x_input_folder -v C:\\Users\\vdube\\Desktop\\workplace\\mf4tocsv\\output_csv_folder:/x_output_folder -e MW_USERNAME={email} -e MW_PASSWORD={password} matlab-mf4-converter

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

カテゴリ

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

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by