2015-12-22 04:05:55 +03:00
package runconfig
import (
"fmt"
)
var (
// ErrConflictContainerNetworkAndLinks conflict between --net=container and links
2016-11-30 10:16:07 +03:00
ErrConflictContainerNetworkAndLinks = fmt . Errorf ( "conflicting options: container type network can't be used with links. This would result in undefined behavior" )
2015-12-22 04:05:55 +03:00
// ErrConflictSharedNetwork conflict between private and other networks
2016-11-30 10:16:07 +03:00
ErrConflictSharedNetwork = fmt . Errorf ( "container sharing network namespace with another container or host cannot be connected to any other network" )
2015-12-22 04:05:55 +03:00
// ErrConflictHostNetwork conflict from being disconnected from host network or connected to host network.
2016-11-30 10:16:07 +03:00
ErrConflictHostNetwork = fmt . Errorf ( "container cannot be disconnected from host network or connected to host network" )
2015-12-22 04:05:55 +03:00
// ErrConflictNoNetwork conflict between private and other networks
2016-11-30 10:16:07 +03:00
ErrConflictNoNetwork = fmt . Errorf ( "container cannot be connected to multiple networks with one of the networks in private (none) mode" )
2015-12-22 04:05:55 +03:00
// ErrConflictNetworkAndDNS conflict between --dns and the network mode
2016-11-30 10:16:07 +03:00
ErrConflictNetworkAndDNS = fmt . Errorf ( "conflicting options: dns and the network mode" )
2015-12-22 04:05:55 +03:00
// ErrConflictNetworkHostname conflict between the hostname and the network mode
2016-11-30 10:16:07 +03:00
ErrConflictNetworkHostname = fmt . Errorf ( "conflicting options: hostname and the network mode" )
2015-12-22 04:05:55 +03:00
// ErrConflictHostNetworkAndLinks conflict between --net=host and links
2016-11-30 10:16:07 +03:00
ErrConflictHostNetworkAndLinks = fmt . Errorf ( "conflicting options: host type networking can't be used with links. This would result in undefined behavior" )
2015-12-22 04:05:55 +03:00
// ErrConflictContainerNetworkAndMac conflict between the mac address and the network mode
2016-11-30 10:16:07 +03:00
ErrConflictContainerNetworkAndMac = fmt . Errorf ( "conflicting options: mac-address and the network mode" )
2015-12-22 04:05:55 +03:00
// ErrConflictNetworkHosts conflict between add-host and the network mode
2016-11-30 10:16:07 +03:00
ErrConflictNetworkHosts = fmt . Errorf ( "conflicting options: custom host-to-IP mapping and the network mode" )
2015-12-22 04:05:55 +03:00
// ErrConflictNetworkPublishPorts conflict between the publish options and the network mode
2016-11-30 10:16:07 +03:00
ErrConflictNetworkPublishPorts = fmt . Errorf ( "conflicting options: port publishing and the container type network mode" )
2015-12-22 04:05:55 +03:00
// ErrConflictNetworkExposePorts conflict between the expose option and the network mode
2016-11-30 10:16:07 +03:00
ErrConflictNetworkExposePorts = fmt . Errorf ( "conflicting options: port exposing and the container type network mode" )
2016-01-26 18:13:26 +03:00
// ErrUnsupportedNetworkAndIP conflict between network mode and requested ip address
2016-11-30 10:16:07 +03:00
ErrUnsupportedNetworkAndIP = fmt . Errorf ( "user specified IP address is supported on user defined networks only" )
2016-01-26 18:13:26 +03:00
// ErrUnsupportedNetworkNoSubnetAndIP conflict between network with no configured subnet and requested ip address
2016-11-30 10:16:07 +03:00
ErrUnsupportedNetworkNoSubnetAndIP = fmt . Errorf ( "user specified IP address is supported only when connecting to networks with user configured subnets" )
2016-01-08 16:45:56 +03:00
// ErrUnsupportedNetworkAndAlias conflict between network mode and alias
2016-11-30 10:16:07 +03:00
ErrUnsupportedNetworkAndAlias = fmt . Errorf ( "network-scoped alias is supported only for containers in user defined networks" )
2016-03-10 04:40:12 +03:00
// ErrConflictUTSHostname conflict between the hostname and the UTS mode
2016-11-30 10:16:07 +03:00
ErrConflictUTSHostname = fmt . Errorf ( "conflicting options: hostname and the UTS mode" )
2015-12-22 04:05:55 +03:00
)