Service.NetworkMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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