All Products
Document Center

:Label description

Last Updated:May 19, 2022

The labels used by the Container Service orchestration template are compatible with most of the labels implemented in Docker Compose V1 and V2. Many extension capabilities are provided based on the community version.

Labels with extension capabilities

Container Service extends the deployment and lifecycle management capabilities for orchestration templates, and all the extension capabilities are described under labels and used as sub-labels.

Label Description
probe Sets the health check of a service.
rolling_updates Sets the rolling update of a service.
parallelism Sets how many containers that rolling_updates can concurrently update at a time.
Note: This label must be used with rolling_updates.
depends Sets the dependencies of a service.
scale Sets the number of containers for a service to scale horizontally.
routing Sets the access domain name of a service.
routing.session_sticky Sets whether or not routing keeps session sticky (namely, session persistence) during the routing request.
Note: This label must be used with routing.
lb Exposes the service port to the Internet or intranet by customizing Alibaba Cloud Server Load Balancer NAT mapping.
global Sets the service as a global service.

Labels with function enhancement

Container Service provides the Service deployment constraints (affinity:service) label to set the deployment constraints for a service.

Additionally supported labels

Label Description
external Sets a service to directly link to an external address.
dns_options Sets the DNS options. The semantics of this label is the same as that of --dns-opt parameter in the docker run command.
oom_kill_disable Sets whether or not to prohibit OOM Killer. The semantics of this label is the same as that of --oom-kill-disable parameter in the docker run command.

Variable substitution

Container Service supports the parameterized Docker Compose template. The template can include the environment variables as parameters. When the template is deployed, you are prompted to enter the parameter values, and the template variables are substituted during the deployment.

For more information, see Variable substitution.

Container rescheduling

Container Service supports rescheduling Docker containers. When a node is invalid, the container can be automatically scheduled to another available node for operation.

For more information, see Container rescheduling.

High availability scheduling

To make the application have higher availability, Container Service supports scheduling containers of the same service in different zones. When a zone malfunctions, the application can still provide services.

For more information, see High availability scheduling.

Unsupported Docker Compose labels

Currently, Container Service does not support some Docker Compose labels. For more information, see Unsupported Docker Compose labels.