Not able to login form docker image for 1 month trail subscription?
5 ビュー (過去 30 日間)
古いコメントを表示
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!!
0 件のコメント
回答 (1 件)
Prabhakar
2024 年 9 月 16 日
Hi @Viplav
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
参考
カテゴリ
Help Center および File Exchange で Containers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!