Yandex Cloud
Документация
ПрезентацияСвязаться с намиНачать бесплатно
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»
Yandex Compute Cloud
KZ
  • Yandex Container Solution
  • Управление доступом
  • Правила тарификации
    • Overview
    • connect-to-serial-port
      • Overview
      • add-access-binding
      • add-labels
      • add-metadata
      • add-one-to-one-nat
      • attach-disk
      • attach-filesystem
      • attach-network-interface
      • create
      • create-with-container
      • delete
      • detach-disk
      • detach-filesystem
      • detach-network-interface
      • get
      • get-serial-port-output
      • list
      • list-access-bindings
      • list-operations
      • move
      • relocate
      • remove-access-binding
      • remove-labels
      • remove-metadata
      • remove-one-to-one-nat
      • restart
      • set-access-bindings
      • simulate-maintenance-event
      • start
      • stop
      • update
      • update-container
      • update-network-interface
  • Справочник Terraform
  • Метрики Monitoring
  • Аудитные логи Audit Trails
  • История изменений
  • Обучающие курсы
  1. Справочник CLI (англ.)
  2. instance
  3. update-container

yc compute instance update-container

Статья создана
Yandex Cloud
Обновлена 26 октября 2026 г.
Открыть в Markdown

Update the specified virtual machine instance running Docker container

Command UsageCommand Usage

Syntax:

yc compute instance update-container <INSTANCE-NAME>|<INSTANCE-ID> [Flags...] [Global Flags...]

FlagsFlags

Flag

Description

--id

string

Instance id.

--name

string

Instance name.

--async

Display information about the operation in progress, without waiting for the operation to complete.

--container-arg

[]string

A list of arguments to append to container entrypoint. Overrides default container CMD

--container-command

string

Executable to run when the container starts. Overrides default container ENTRYPOINT

--container-env

key=value[,key=value...]

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.
Values, declared with --container-env flag override those with the same KEY from file, provided in --container-env-file.

--container-env-file

string

Declare environment variables in a file. Values, declared with --container-env flag override those with the same KEY from file.
File must contain lines in format KEY=VALUE, variables without value are not supported.

--container-image

string

Container image name.

--container-name

string

Container name.

--container-privileged

Specify whether to run container in privileged mode.

--container-stdin

Open container STDIN.

--container-tty

Allocate a pseudo-TTY for the container.

--container-restart-policy

string

Specify whether to restart a container on exit. Must be one of: Always, Never, OnFailure. Default: Always.

--container-volume-tmpfs

PROPERTY=VALUE[,PROPERTY=VALUE...]

Add tmpfs-backed docker volume

Possible property names:

  • name: Specifies the name of the volume. (required)

  • mount-path: Specifies the mount path of the volume inside a container. (required)

--container-volume-host-path

PROPERTY=VALUE[,PROPERTY=VALUE...]

Add docker volume bound to host path

Possible property names:

  • name: Specifies the name of the volume. (required)

  • mount-path: Specifies the mount path of the volume inside a container. (required)

  • ro: Specifies whether the volume is read-only or not inside a container. Default: false

  • host-path: Specifies a path on host VM that will be bound to the volume. (required)

--docker-compose-file

string

Docker compose file.

--coi-spec-file

string

Container optimized image YAML file.

--clear-container-args

Removes the list of arguments from container declaration.

--clear-container-command

Removes command from container declaration.

--remove-container-env

string

Removes environment variable KEY from container declaration.

--remove-container-volume

string

Remove docker volume from container declaration by its name. Several names separated with comma can be provided.

--clear-container-volumes

Remove all docker volumes from container declaration

Global FlagsGlobal Flags

Flag

Description

--profile

string

Set the custom profile.

--region

string

Set the region.

--cloud-id

string

Set the ID of the cloud to use.

--folder-id

string

Set the ID of the folder to use.

--folder-name

string

Set the name of the folder to use (will be resolved to id).

--debug

Debug logging.

--debug-grpc

Debug gRPC logging. Very verbose, used for debugging connection problems.

--no-user-output

Disable printing user intended output to stderr.

--pager

string

Set the custom pager.

--no-pager

Do not pipe help output through a pager.

--format

string

Set the output format: text (default), yaml, json, json-rest.

--retry

int

Enable gRPC retries. By default, retries are enabled with maximum 5 attempts.
Pass 0 to disable retries. Pass any negative value for infinite retries.
Even infinite retries are capped with 2 minutes timeout.

--timeout

string

Set the timeout.

--token

string

Set the OAuth token to use.

--jq

string

Query to select values from the response using jq syntax

--endpoint

string

Set the Cloud API endpoint (host:port).

--impersonate-service-account-id

string

Set the ID of the service account to impersonate.

--no-browser

Disable opening browser for authentication.

--query

string

Query to select values from the response using jq syntax

--print-metadata

Print operation metadata along with result.

--syntax

string

Choose syntax option.

--cli-auto-prompt

string[="on"]

Enable interactive auto-prompt mode. Values: on, partial, off. Bare --cli-auto-prompt is equivalent to --cli-auto-prompt=on.

--no-cli-auto-prompt

Disable interactive auto-prompt mode (overrides --cli-auto-prompt, env and profile).

-h, --help

Display help for the command.

Была ли статья полезна?

Предыдущая
update
Следующая
update-network-interface
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»