In Docker, containers are non-persistent. This means that after a container is deleted, its data are also deleted. Although, Docker provides volumes that can be attached to host directories for persistent storage, in a cluster environment, host volumes have limitations, such as:
- Data cannot be migrated when containers are migrated between machines.
- Volumes cannot be shared between different machines.
To resolve these issues, Alibaba Cloud Container Service provides third-party data volumes. By packaging various cloud storage resources as data volumes, the service allows these data volumes to be directly attached to containers. This way, the data volumes can be automatically reattached when a container is restarted or migrated.
Currently, this service supports OSSFS storage.