Obtaining an Image Creation Template
ma-cli provides some common image creation templates, in which the guidance for developing Dockerfiles on ModelArts notebook is provided.
$ ma-cli image get-template -h Usage: ma-cli image get-template [OPTIONS] List build-in dockerfile templates. Example: # List build-in dockerfile templates ma-cli image get-template [--filer <filter_info>] [--page-num <yourPageNum>] [--page-size <yourPageSize>] Options: --filter TEXT filter by keyword. -pn, --page-num INTEGER RANGE Specify which page to query. [x>=1] -ps, --page-size INTEGER RANGE The maximum number of results for this query. [x>=1] -D, --debug Debug Mode. Shows full stack trace when error occurs. -P, --profile TEXT CLI connection profile to use. The default profile is "DEFAULT". -H, -h, --help Show this message and exit. (PyTorch-1.4) [ma-user work]$
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
--filter |
String |
No |
Filter templates based on the template name keyword. |
-pn / --page-num |
Int |
No |
Image page index. The default value is page 1. |
-ps / --page-size |
Int |
No |
Number of images displayed on each page. The default value is 20. |
Examples
Obtain an image creation template.
ma-cli image get-template
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot