Container

Run and manage containers.

Usage:

lightning container [OPTIONS] COMMAND [ARGS]...

Commands

Command

Description

delete

Delete the docker container NAME.

download

Download a docker container from a teamspace.

list

Display the list of available containers.

upload

Upload a container to Lightning AI’s container registry.

lightning container delete

Delete the docker container NAME.

Usage:

lightning container delete [OPTIONS] NAME

Arguments

Name

Type

Required

Description

NAME

text

yes

Container name to delete.

Options

Option

Type

Required

Default

Description

--teamspace

TEXT

no

Sentinel.UNSET

The teamspace to delete the container from. Should be specified as {owner}/{name}. Defaults to the configured teamspace.

--yes, -y

—

no

—

Delete without prompting for confirmation.

lightning container download

Download a docker container from a teamspace.

Usage:

lightning container download [OPTIONS] CONTAINER

Arguments

Name

Type

Required

Description

CONTAINER

text

yes

Container name to download.

Options

Option

Type

Required

Default

Description

--teamspace

TEXT

no

—

The name of the teamspace to download the container from

--tag

TEXT

no

'latest'

The tag of the container to download.

--cloud-account, --cloud_account

TEXT

no

—

The name of the cloud account to download the Container from.

lightning container list

Display the list of available containers.

Usage:

lightning container list [OPTIONS]

Options

Option

Type

Required

Default

Description

--teamspace

TEXT

no

—

the teamspace to list containers from. Should be specified as {owner}/{name}. Defaults to the configured teamspace.

--cloud-account, --cloud_account

TEXT

no

—

The name of the cloud account where containers are stored in.

--json

—

no

—

Output as JSON.

lightning container upload

Upload a container to Lightning AI’s container registry.

Usage:

lightning container upload [OPTIONS] CONTAINER

Arguments

Name

Type

Required

Description

CONTAINER

text

yes

Container name to upload.

Options

Option

Type

Required

Default

Description

--tag

TEXT

no

'latest'

The tag of the container to upload.

--teamspace

TEXT

no

—

The teamspace the studio is part of. Should be of format <OWNER>/<TEAMSPACE_NAME>. If not specified, tries to infer from the environment (e.g. when run from within a Studio.)

--cloud-account, --cloud_account

TEXT

no

—

The name of the cloud account to store the Container in.

--platform

TEXT

no

'linux/amd64'

This is the platform the container pulled and push to Lightning AI will run on.

Was this page helpful?

What went wrong?

↑↓ Navigate↵ Open⌘↵ New tabesc Close