Usage
Arguments
Options
User to use with docker create. This breaks some images, so only use this if you are certain you need it.
For runtype ‘jupyter’, directory in instance to use to launch jupyter. Defaults to image’s working directory
Workaround for images with locale problems: install and generate locales before instance launch, and set locale to C.UTF-8
list of arguments passed to container ENTRYPOINT. Onstart is recommended for this purpose. (must be last argument)
Return error if scheduling fails (rather than creating a stopped instance)
Create a new local volume using an ID returned from the “search volumes” command and link it to the new instance
ID of an existing rented volume to link to the instance during creation. (returned from “show volumes” cmd)
Description
Performs the same action as pressing the “RENT” button on the website at https://console.vast.ai/create/ Creates an instance from an offer ID (which is returned from “search offers”). Each offer ID can only be used to create one instance. Besides the offer ID, you must pass in an ‘--image’ argument as a minimum.
If you use args/entrypoint launch mode, we create a container from your image as is, without attempting to inject ssh and or jupyter.
If you use the args launch mode, you can override the entrypoint with --entrypoint, and pass arguments to the entrypoint with --args.
If you use --args, that must be the last argument, as any following tokens are consumed into the args string.
For ssh/jupyter launch types, use --onstart-cmd to pass in startup script, instead of --entrypoint and --args.