Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Serverless Containers
  • Comparison with other Yandex Cloud services
    • All guides
    • Getting an IAM token for a service account using a container
      • Making a revision active
      • Changing the container operation mode
      • Adding environment variables
      • Specifying a cloud network
      • Transferring Yandex Lockbox secrets
      • Viewing monitoring charts
      • Migration to the ru-central1-d availability zone
      • Deleting a container
    • Viewing operations with service resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Managing a container
  3. Changing the container operation mode

Changing the container operation mode

Written by
Yandex Cloud
Updated at February 17, 2025
Management console
CLI
API
  1. In the management console, select the folder with your container.
  2. Select Serverless Containers.
  3. Select the container you want to change the operation mode for.
  4. Go to the Editor tab.
  5. In the window that opens, under General information, select HTTP server or Command running.
  6. Click Create revision. This will create a new container revision with the selected operation mode.

To change the container operation mode, run this command:

yc serverless container revision deploy \
  --container-id <container_ID> \
  --image <Docker_image_URL> \
  --service-account-id <service_account_ID>
  --runtime <operation_mode>

Where:

  • --container-id: Container ID. To find out the ID, get a list of containers.
  • --image: Yandex Container Registry Docker image URL.
  • --service-account-id: ID of the service account with permissions to download a Docker image.
  • --runtime: Container operation mode. It can be either http or task. The default value is http.

Result:

done (3s)
id: bba8faed420g********
container_id: bbab5i36nvda********
created_at: "2024-12-13T12:12:09.057Z"
image:
  image_url: cr.yandex/crpp35hht729********/ubuntu:hello
  image_digest: sha256:f6f34c6cf5f56e594e9828274592f1cc4d9383b1689057ccaf188d41********
resources:
  memory: "134217728"
  cores: "1"
  core_fraction: "100"
execution_timeout: 3s
concurrency: "1"
service_account_id: aje07l4q4vmo********
status: ACTIVE
log_options:
  folder_id: b1gc1t4cb638********
runtime:
  task: {}

To change the container operation mode, use the deployRevision REST API method for the Container resource or the ContainerService/DeployRevision gRPC API call.

Was the article helpful?

Previous
Making a revision active
Next
Viewing scaling settings
Yandex project
© 2025 Yandex.Cloud LLC