Skip to main content

anycloud submit

Deploy a finite container Job. Alias: anycloud run.

anycloud submit <image> [-- command...] [options]

Use -- before a container command that has its own flags.

Options

OptionDescription
-i, --id IDCustom deployment ID
-e, --env KEY=VALUEEnvironment value; repeatable. -e KEY reads the current shell
--env-file FILELoad values from a dotenv file
--secret NAMEInject a named Secret; repeatable
-p, --persistKeep the VM after the Job exits
--persist-bucketRetain the automatic spot checkpoint Bucket
--credentials NAMEPin compute to one saved credential
--region REGIONPin one compute region
--vm-type TYPEExact VM; repeat for an ordered fallback pool
--gpu-type TYPEGPU model and optional count; repeat for an ordered fallback pool
--spotUse spot/preemptible capacity
--localUse the API server's Local compute capability
--disk-size GBRoot disk capacity
--disk-tier TIERmedium, high, or ultra
--zone ZONEAvailability zone
--input-bucket NAMERead-only input at /mnt/input
--output-bucket NAMEWritable output at /mnt/output
--input-storage-credentials NAMECross-account input identity
--input-storage-region REGIONCross-account input Bucket region
--output-storage-credentials NAMECross-account output identity
--output-storage-region REGIONCross-account output Bucket region
--checkpoint-storage-credentials NAMECross-account checkpoint identity
--checkpoint-storage-region REGIONCross-account checkpoint Bucket region
--gpus VALUEDocker GPU exposure: all or a count
--shm-size SIZEShared memory, such as 8g
--memory LIMITContainer memory limit
--cpus COUNTContainer CPU limit
--runtime RUNTIMEDocker runtime
--ipc MODEhost, private, or shareable
--ulimit VALUEDocker ulimit; repeatable
--bind BIND...Host bind mounts

--gpu-type and --vm-type are mutually exclusive. --credentials may appear once; omit it to use eligible saved named credentials. An unpinned credential pool requires an unpinned region.

--persist-bucket only applies to spot Jobs. On non-spot submissions, the CLI warns and ignores it. It is independent of --persist.

--local requires starting the API with Local Docker enabled:

anycloud api start --enable-local-docker
anycloud submit IMAGE --local

Examples

anycloud submit ghcr.io/acme/train:latest \
--credentials my-aws \
--gpu-type h100:8 \
--spot \
--gpus all \
-- python train.py --epochs 10
anycloud submit ghcr.io/acme/app:latest \
--credentials my-aws \
--vm-type t3.medium

GITHUB_TOKEN supplies GitHub authentication in non-interactive use. ANYCLOUD_CREDENTIALS_NAME is the credentials-name fallback when the flag is absent.

For field precedence and constraints, see Configuration.