Share via


Service.ExtraHosts Property

Definition

Represents additional hostname-to-IP mappings for the service. These mappings allow you to manually define hostnames and corresponding IP addresses, effectively augmenting the DNS resolution for the service's containers.

[YamlDotNet.Serialization.YamlMember(Alias="extra_hosts", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)]
public System.Collections.Generic.Dictionary<string,string> ExtraHosts { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="extra_hosts", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)>]
member this.ExtraHosts : System.Collections.Generic.Dictionary<string, string> with get, set
Public Property ExtraHosts As Dictionary(Of String, String)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to