Label description

Last Updated: Nov 15, 2017

The labels used by the Container Service orchestration template are compatible with most of the labels in Docker Compose from version 1.5.x to 1.7.x. 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 public network 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 function of this label is the same as that of --dns-opt in the docker run command.
oom_kill_disable Sets whether or not to prohibit OOM Killer. The function of this label is the same as that of --oom-kill-disable 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 details, see Variable substitution.

Container rescheduling

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

For details, 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 details, see High availability scheduling.

Unsupported Docker Compose labels

Currently, some Docker Compose labels are not supported by Container Service. For details, see Unsupported Docker Compose labels.

Thank you! We've received your feedback.