Signature
Parameters
ids of instance types to launch (returned from search offers)
Create instance from template info
User to use with docker create. This breaks some images, so only use this if you are certain you need it.
size of local disk partition in GB
docker container image to launch
docker login arguments for private repo authentication, surround with ”
label to set on the instance
filename to use as onstart script
contents of onstart script as single argument
override entrypoint for args launch instance
Launch as an ssh instance type
Launch as a jupyter instance instead of an ssh instance
Use (faster) direct connections for jupyter & ssh
For runtype ‘jupyter’, directory in instance to use to launch jupyter. Defaults to image’s working directory
For runtype ‘jupyter’, Launch instance with jupyter lab
Workaround for images with locale problems: install and generate locales before instance launch, and set locale to C.UTF-8
Workaround for images with locale problems: set python’s locale to C.UTF-8
env variables and port mapping options, surround with ”
list of arguments passed to container ENTRYPOINT. Onstart is recommended for this purpose. (must be last argument)
Skip sanity checks when creating from an existing instance
Return error if scheduling fails (rather than creating a stopped instance)
(OPTIONAL) create an INTERRUPTIBLE instance with per machine bid price in $/hour
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)
Size of the volume to create in GB. Only usable with —create-volume (default 15GB)
The path to the volume from within the new instance container. e.g. /root/volume
(optional) A name to give the new volume. Only usable with —create-volume
Returns
dict