Service.NetworkMode Property

Definition

Specifies the network mode to be used for the container. This property determines the networking configuration, such as whether the container shares the network stack with the host, uses a predefined network, or operates in isolation. The value is typically a string that matches a network mode supported by the environment, such as 'bridge', 'host', 'none', or a custom network name.

[YamlDotNet.Serialization.YamlMember(Alias="network_mode")]
public string? NetworkMode { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="network_mode")>]
member this.NetworkMode : string with get, set
Public Property NetworkMode As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to