Share via


Placement Class

Definition

Represents the placement configuration for a Docker service in a Swarm cluster. This class is used to define specific constraints and preferences for the placement of tasks or containers.

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

Constructors

Placement()

Properties

Constraints

A collection of constraints that define where tasks can be scheduled within a Swarm cluster. These constraints act as filters, ensuring that tasks are only placed on nodes that match all the specified conditions.

Preferences

Gets or sets the preferences for the placement strategy in the Swarm service nodes.

Applies to