# Functions
Compare two Config struct.
ConvertKVStringsToMap converts ["key=value"] to {"key":"value"}.
DecodeContainerConfig decodes a json encoded config into a ContainerConfigWrapper struct and returns both a Config and an 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.
Merge merges two Config, the image container configuration (defaults values), and the user container configuration, either passed by the API or generated by the cli.
MergeConfigs merges the specified container Config and HostConfig.
NewLxcConfig creates a LxcConfig from the specified slice of KeyValuePair.
Parse parses the specified args for the specified command and generates a Config, a HostConfig and returns them with the specified command.
ParseDevice parses a device mapping string to a DeviceMapping struct.
ParseExec parses the specified args for the specified command and generates an ExecConfig from it.
ParseRestartPolicy returns the parsed policy or an error indicating what is incorrect.
SetDefaultNetModeIfBlank changes the NetworkMode in a HostConfig structure to default if it is not populated.
ValidateNetMode ensures that the various combinations of requested network settings are valid.
# Variables
ErrConflictContainerNetworkAndLinks conflict between --net=container and links.
ErrConflictContainerNetworkAndMac conflict between the mac address and the network mode.
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 pulbish 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.
# Structs
Config contains the configuration data about a container.
ContainerConfigWrapper is a Config wrapper that hold the container Config (portable) and the corresponding HostConfig (non-portable).
DeviceMapping represents the device mapping between the host and the container.
ExecConfig is a small subset of the Config struct that hold the configuration for the exec feature of docker.
HostConfig the non-portable Config structure of a container.
KeyValuePair is a structure that hold a value for a key.
LogConfig represents the logging configuration of the container.
LxcConfig represents the specific LXC configuration of the container.
RestartPolicy represents the restart policies of the container.
# Type aliases
IpcMode represents the container ipc stack.
NetworkMode represents the container network stack.
PidMode represents the pid stack of the container.
UTSMode represents the UTS namespace of the container.