init
¶
The init
command creates an instance but does not start it immediately.
amc init <app_id | image_id> [options]
The following options are available:
Option |
Input type |
Description |
Default value |
---|---|---|---|
|
String |
Comma-separated list of addons to install in the instance. Applicable for raw instances only. |
|
|
Integer |
Number of CPU cores to be assigned for the instance. |
2 |
|
Enables developer mode for the instance. |
Disabled |
|
|
Disables watchdog for the instance. Applicable for regular instances only. |
||
|
String |
Disk size of the instance. |
3 GB for a container instance; |
|
Enables graphics for the instance |
Disabled |
|
|
String |
Comma-separated list of features to enable for the Anbox runtime inside the instance |
|
|
Integer |
Number of GPU slots to be assigned for the instance. |
-1 |
|
Displays help information for the command |
||
|
String |
Memory to be assigned for the instance |
3GB |
|
String |
Metrics server to which the instance sends its data |
|
|
Indicates not to wait for the instance to start |
Disabled |
|
|
String |
Indicates the LXD node to use for creating the instance |
|
|
String |
Indicates the Anbox platform to use |
|
|
Creates a raw instance for the specified image instead of an application instance |
||
|
String array |
Services to expose on the instance’s IP endpoint for external access (public or private) |
|
|
String |
Comma-separated list of tags to set for the instance |
|
|
String value that indicates the maximum time to wait for the operation to complete. The default value is |
||
|
String |
Additional user data to be sent to the created instance |
|
|
String |
Path to a file with additional user data to be sent to the created instance |
|
|
Integer |
Indicates the specific version of an application or image to use when creating an instance |
-1 |
|
Creates a virtual machine instead of a container |
Disabled |
|
|
Integer |
Indicates the number of VPU slots to be assigned for the instance. |
-1 |