Skip to main content

Container Commands

Create a container

Usage:

bitdeer-ai container create [flags]

Examples:

bitdeer-ai container create -p <project-id> -n <container-name> -s <specification-type> -i <image> -w <workdir> --volume name1:/path1 --cmds <cmd> --args <arg> --envs <env> -r <region-id> -z <zone-id>

Flags:

  • -p, --project_id string: Project ID (required)
  • -n, --name string: Container Name (required)
  • -s, --spec string: Machine Specification (required)
  • -w, --workdir string: Working Directory
  • -v, --volume stringArray: Container Volume Mounts, value is in the form of 'volumeName:/path/to/mount'
  • -i, --image string: Container Image (required)
  • -a, --args stringArray: Arguments
  • -c, --cmds stringArray: Commands
  • -e, --envs stringArray: Environment Variables
  • -r, --region_id string: Region ID (default 'ap-southeast-1')
  • -z, --zone_id string: Zone ID (default 'ap-southeast-1a')
  • -h, --help: Help for create