# Packages
No description provided by the author
# Functions
Compare two Config struct.
DecodeContainerConfig decodes a json encoded config into a ContainerConfigWrapper struct and returns both a Config and a HostConfig struct Be aware this function is not checking whether the resulted structs are nil, it's your business to do so.
DecodeHostConfig creates a HostConfig based on the specified Reader.
DefaultDaemonNetworkMode returns the default network stack the daemon should use.
IsPreDefinedNetwork indicates if a network is predefined by the daemon.
SetDefaultNetModeIfBlank changes the NetworkMode in a HostConfig structure to default if it is not populated.
ValidateIsolation performs platform specific validation of isolation in the hostconfig structure.
ValidateNetMode ensures that the various combinations of requested network settings are valid.
ValidateQoS performs platform specific validation of the QoS settings.
ValidateResources performs platform specific validation of the resource settings cpu-rt-runtime and cpu-rt-period can not be greater than their parent, cpu-rt-runtime requires sys_nice.
# Variables
ErrConflictContainerNetworkAndLinks conflict between --net=container and links.
ErrConflictContainerNetworkAndMac conflict between the mac address and the network mode.
ErrConflictHostNetwork conflict from being disconnected from host network or connected to host network.
ErrConflictHostNetworkAndLinks conflict between --net=host and links.
ErrConflictNetworkAndDNS conflict between --dns and the network mode.
ErrConflictNetworkExposePorts conflict between the expose option and the network mode.
ErrConflictNetworkHostname conflict between the hostname and the network mode.
ErrConflictNetworkHosts conflict between add-host and the network mode.
ErrConflictNetworkPublishPorts conflict between the publish options and the network mode.
ErrConflictNoNetwork conflict between private and other networks.
ErrConflictSharedNetwork conflict between private and other networks.
ErrConflictUserDefinedNetworkAndLinks conflict between --net=<NETWORK> and links.
ErrConflictUTSHostname conflict between the hostname and the UTS mode.
ErrUnsupportedNetworkAndAlias conflict between network mode and alias.
ErrUnsupportedNetworkAndIP conflict between network mode and requested ip address.
ErrUnsupportedNetworkNoSubnetAndIP conflict between network with no configured subnet and requested ip address.
# Structs
ContainerConfigWrapper is a Config wrapper that holds the container Config (portable) and the corresponding HostConfig (non-portable).
ContainerDecoder implements httputils.ContainerDecoder calling DecodeContainerConfig.