Esta página aún no está disponible en su idioma local. Estamos trabajando arduamente para agregar más versiones de idiomas. Gracias por tu apoyo.

On this page

Show all

Obtaining an Image Creation Template

Updated on 2024-06-12 GMT+08:00

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]$
Table 1 Parameters

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

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback