Service.Sysctls 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.
Represents a set of kernel parameters, specified as key-value pairs,
that can be applied to the container at runtime.
This property allows customization of specific Linux kernel settings
(sysctl parameters) for the container, enabling fine-tuned control
over its behavior. Common use cases include tuning network parameters
or configuring shared memory limits.
Note: Supported kernel parameters will vary based on the Docker daemon
and the host system. Unsupported parameters will result in an error.
Example: Use this property to set parameters like net.ipv4.tcp_syncookies
or net.core.somaxconn
.
[YamlDotNet.Serialization.YamlMember(Alias="sysctls", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)]
public System.Collections.Generic.Dictionary<string,string> Sysctls { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="sysctls", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)>]
member this.Sysctls : System.Collections.Generic.Dictionary<string, string> with get, set
Public Property Sysctls As Dictionary(Of String, String)
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute