yc compute instance create-with-container
Create a virtual machine instance running Docker container
Command Usage
Syntax:
yc compute instance create-with-container <INSTANCE-NAME> [Flags...] [Global Flags...]
Flags
|
Flag |
Description |
|
|
A name of the instance. |
|
|
Specifies a textual description of the instance. |
|
|
A list of label KEY=VALUE pairs to add. For example, to add two labels named 'foo' and 'bar', both with the value 'baz', use '--labels foo=baz,bar=baz'. |
|
|
The zone of the instance to create. |
|
|
Metadata to be made available to the guest operating system running on the instance. |
|
|
Options set the access mode to instance's metadata. Possible property names:
|
|
|
Same as --metadata except that the value for the entry will be read from a local file. |
|
|
Creates user 'yc-user' and adds SSH key from specified file to authorized keys using cloud-config. |
|
|
If true, one-to-one NAT public IP will be created for the default network interface. Cannot be passed together with --network-interface |
|
|
If set, one-to-one NAT public IP will be created for the default network interface with the specified value. Cannot be passed together with --network-interface |
|
|
Creates and attaches persistent disks to the instance. Possible property names:
|
|
|
Attaches persistent disks to the instances. The specified disks must already exist. Possible property names:
|
|
|
Creates a new disk and uses it as a boot disk of the instance. Possible property names:
|
|
|
Uses an already existing disk as a boot disk of the instance. Possible property names:
|
|
|
Attaches filesystems to the instances. The specified filesystems must already exist. Possible property names:
|
|
|
Attaches local disks to the instances. Possible property names:
|
|
|
Network settings for the instance. Possible property names:
|
|
|
Adds a network interface to the instance. Possible property names:
|
|
|
Serial port settings for the instance. Possible property names:
|
|
|
Specifies how much memory instance should have in GB. You can also use M and T suffixes to specify smaller or greater size respectively. |
|
|
Specifies how many CPU cores instance should have. |
|
|
If provided, specifies baseline performance for a core in percent. |
|
|
Specifies how many GPUs instance should have. |
|
|
Specifies platform for the instance. |
|
|
Creates instance with specified hostname. |
|
|
Creates preemptible instance. |
|
|
Behaviour on maintenance events. Values: 'restart', 'migrate' |
|
|
Time between notification via metadata service and maintenance. |
|
|
Placement group to create the instance in. |
|
|
Placement group to create the instance in. |
|
|
Specifies placement group partition for the instance. |
|
|
Host group to create the instance in. |
|
|
Host group to create the instance in. |
|
|
Host to create the instance in. |
|
|
GPU cluster to create the instance in. |
|
|
GPU cluster to create the instance in. |
|
|
Service account, which token can be obtained inside VM from metadata service. |
|
|
Service account, which token can be obtained inside VM from metadata service. |
|
|
Reserved instance pool to create the instance in. |
|
|
Reserved instance pool to create the instance in. |
|
|
Display information about the operation in progress, without waiting for the operation to complete. |
|
|
A list of arguments to append to container entrypoint. Overrides default container CMD |
|
|
Executable to run when the container starts. Overrides default container ENTRYPOINT |
|
|
Declare environment variable KEY with value VALUE passed to container. Only the last value of KEY is taken when KEY is repeated more than once. |
|
|
Declare environment variables in a file. Values, declared with --container-env flag override those with the same KEY from file. |
|
|
Container image name. |
|
|
Container name. |
|
|
Specify whether to run container in privileged mode. |
|
|
Open container STDIN. |
|
|
Allocate a pseudo-TTY for the container. |
|
|
Specify whether to restart a container on exit. Must be one of: Always, Never, OnFailure. Default: Always. |
|
|
Add tmpfs-backed docker volume Possible property names:
|
|
|
Add docker volume bound to host path Possible property names:
|
|
|
Docker compose file. |
|
|
Container optimized image YAML file. |
Global Flags
|
Flag |
Description |
|
|
Set the custom configuration file. |
|
|
Debug logging. |
|
|
Debug gRPC logging. Very verbose, used for debugging connection problems. |
|
|
Disable printing user intended output to stderr. |
|
|
Enable gRPC retries. By default, retries are enabled with maximum 5 attempts. |
|
|
Set the ID of the cloud to use. |
|
|
Set the ID of the folder to use. |
|
|
Set the name of the folder to use (will be resolved to id). |
|
|
Set the Cloud API endpoint (host:port). |
|
|
Set the OAuth token to use. |
|
|
Set the ID of the service account to impersonate. |
|
|
Disable opening browser for authentication. |
|
|
Set the output format: text (default), yaml, json, json-rest. |
|
|
Query to select values from the response using jq syntax |
|
|
Display help for the command. |