Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Container Solution
  • Comparison with other Yandex Cloud services
  • Getting started
    • Container Optimized Image
    • Working with disks
    • Working with the network
    • Docker image
    • Policies for restarting a Docker container
    • Docker container specifications
    • Quotas and limits
  • Pricing policy
  • Container Optimized Image releases
  • FAQ
  • Troubleshooting

In this article:

  • Working with a boot disk
  • Use cases
  • Working with secondary disks
  • Use cases
  1. Concepts
  2. Working with disks

How to work with disks

Written by
Yandex Cloud
Updated at June 11, 2025
View in Markdown
  • Working with a boot disk
    • Use cases
  • Working with secondary disks
    • Use cases

Working with a boot diskWorking with a boot disk

When creating a Container Optimized Image VM, keep in mind that:

  • You cannot create a boot disk from a disk snapshot.

  • By default, you create a disk the same size as the image. Therefore, a Container Optimized Image VM may not have enough free space to deploy a Docker container. To avoid this, specify the required boot disk size using this parameter: --create-boot-disk size=<disk_size_in_GB>.

    To get the minimum boot disk size required for installing an image, run this command:

    • yc compute image get-latest-from-family container-optimized-image --folder-id standard-images if you are installing a Container Optimized Image.
    • yc compute image get-latest-from-family container-optimized-image-gpu --folder-id standard-images if you are installing a GPU Container Optimized Image.

    You can find the minimum boot disk size in the min_disk_size property.

Use casesUse cases

  • Creating a VM from a Container Optimized Image with multiple Docker containers
  • Running a containerized app in Yandex Serverless Containers

Working with secondary disksWorking with secondary disks

You can mount a secondary disk into the container by using the x-yc-disks section of the Docker Compose specification:

  • To mount a disk into a Container Optimized Image VM and search in the /dev/disk/by-id/virtio-... tree, use the disk device-name. If you do not specify this parameter when connecting the disk to the VM, you may get a mount error.
  • When using a partitioned secondary disk, provide the partition: x parameter in the Docker Compose specification, where x is the number of the partition to mount.

Use casesUse cases

  • Creating a VM from a Container Optimized Image and an additional volume for a Docker container

Was the article helpful?

Previous
Container Optimized Image
Next
Working with the network
© 2026 Direct Cursus Technology L.L.C.