Docker volume in Container Registry
Warning
Starting October 13, 2026, Yandex Container Registry will be unavailable to new users.
The existing users can create resources until November 10, 2026. Afterwards, Yandex Container Registry will go read-only and cease to operate on December 14, 2026. For more information on how it will be handled, see this article on Yandex Container Registry sunset.
A Docker volume is a tool for the permanent storage of information on a VM instance. The data in the volume is stored independently of containers. If you delete a container, both its volumes and data will persist. Deleting a volume is a separate operation.
Volumes and Docker Compose
You can use Docker Compose to create and manage multiple volumes. When docker-compose up is called for the first time, the described volumes will be created. These volumes will be used in subsequent calls.
If you run a container that creates a new volume, the content from the mount folder will be copied to the volume. Containers that have mounted the volume will gain access to the volume data.