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
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 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 April 18, 2025
  • Working with a boot disk
    • Use cases
  • Working with secondary disks
    • Use cases

Working 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 flag: --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 cases

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

Working 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 cases

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

Was the article helpful?

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