· 6 years ago · Apr 01, 2020, 04:08 PM
1root@debian:~# ./vast create instance --help
2usage: vast create instance id [OPTIONS] [--args ...]
3
4positional arguments:
5 id id of instance type to launch
6
7optional arguments:
8 -h, --help show this help message and exit
9 --price PRICE per machine bid price in $/hour
10 --disk DISK size of local disk partition in GB
11 --image IMAGE docker container image to launch
12 --label LABEL label to set on the instance
13 --onstart ONSTART filename to use as onstart script
14 --onstart-cmd ONSTART_CMD
15 contents of onstart script as single argument
16 --jupyter Launch as a jupyter instance instead of an ssh
17 instance.
18 --jupyter-dir JUPYTER_DIR
19 For runtype 'jupyter', directory in instance to use to
20 launch jupyter. Defaults to image's working directory.
21 --jupyter-lab For runtype 'jupyter', directory in instance to use to
22 launch jupyter. Defaults to image's working directory.
23 --lang-utf8 Workaround for images with locale problems: install
24 and generate locales before instance launch, and set
25 locale to C.UTF-8.
26 --python-utf8 Workaround for images with locale problems: set
27 python's locale to C.UTF-8.
28 --args ... DEPRECATED: list of arguments passed to container
29 launch. Onstart is recommended for this purpose.
30 --create-from CREATE_FROM
31 Existing instance id to use as basis for new instance.
32 Instance configuration should usually be identical, as
33 only the difference from the base image is copied.
34 --force Skip sanity checks when creating from an existing
35 instance
36 --url URL server REST api url
37 --raw output machine-readable json
38 --api-key API_KEY api key. defaults to using the one stored in
39 ~/.vast_api_key
40
41root@debian:~# ./vast create instance 500290 --image kmorrison64/leelenscorer:v0.12 --disk 64 --price 0.220 --lang-utf8 --python-utf8 --label htop-docker-ZZZ
42Started. {'success': True, 'new_contract': 500627}
43root@debian:~#