Share via


LabelSpecs Class

Definition

Represents a collection of additional labels that can be associated with a Docker service. This class is used to define extra metadata in the form of key-value pairs.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class LabelSpecs
[<YamlDotNet.Serialization.YamlSerializable>]
type LabelSpecs = class
Public NotInheritable Class LabelSpecs
Inheritance
LabelSpecs
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Constructors

LabelSpecs()

Properties

AdditionalLabels

Gets or sets the collection of additional labels as a dictionary of key-value pairs. These labels can be used to provide metadata or additional configuration for a service node in a Swarm environment.

Applies to