github.com/ruphin/docker@v1.10.1/runconfig/errors.go (about) 1 package runconfig 2 3 import ( 4 "fmt" 5 ) 6 7 var ( 8 // ErrConflictContainerNetworkAndLinks conflict between --net=container and links 9 ErrConflictContainerNetworkAndLinks = fmt.Errorf("Conflicting options: container type network can't be used with links. This would result in undefined behavior") 10 // ErrConflictUserDefinedNetworkAndLinks conflict between --net=<NETWORK> and links 11 ErrConflictUserDefinedNetworkAndLinks = fmt.Errorf("Conflicting options: networking can't be used with links. This would result in undefined behavior") 12 // ErrConflictSharedNetwork conflict between private and other networks 13 ErrConflictSharedNetwork = fmt.Errorf("Container sharing network namespace with another container or host cannot be connected to any other network") 14 // ErrConflictHostNetwork conflict from being disconnected from host network or connected to host network. 15 ErrConflictHostNetwork = fmt.Errorf("Container cannot be disconnected from host network or connected to host network") 16 // ErrConflictNoNetwork conflict between private and other networks 17 ErrConflictNoNetwork = fmt.Errorf("Container cannot be connected to multiple networks with one of the networks in private (none) mode") 18 // ErrConflictNetworkAndDNS conflict between --dns and the network mode 19 ErrConflictNetworkAndDNS = fmt.Errorf("Conflicting options: dns and the network mode") 20 // ErrConflictNetworkHostname conflict between the hostname and the network mode 21 ErrConflictNetworkHostname = fmt.Errorf("Conflicting options: hostname and the network mode") 22 // ErrConflictHostNetworkAndLinks conflict between --net=host and links 23 ErrConflictHostNetworkAndLinks = fmt.Errorf("Conflicting options: host type networking can't be used with links. This would result in undefined behavior") 24 // ErrConflictContainerNetworkAndMac conflict between the mac address and the network mode 25 ErrConflictContainerNetworkAndMac = fmt.Errorf("Conflicting options: mac-address and the network mode") 26 // ErrConflictNetworkHosts conflict between add-host and the network mode 27 ErrConflictNetworkHosts = fmt.Errorf("Conflicting options: custom host-to-IP mapping and the network mode") 28 // ErrConflictNetworkPublishPorts conflict between the publish options and the network mode 29 ErrConflictNetworkPublishPorts = fmt.Errorf("Conflicting options: port publishing and the container type network mode") 30 // ErrConflictNetworkExposePorts conflict between the expose option and the network mode 31 ErrConflictNetworkExposePorts = fmt.Errorf("Conflicting options: port exposing and the container type network mode") 32 // ErrUnsupportedNetworkAndIP conflict between network mode and preferred ip address 33 ErrUnsupportedNetworkAndIP = fmt.Errorf("User specified IP address is supported on user defined networks only") 34 // ErrUnsupportedNetworkNoSubnetAndIP conflict between network with no configured subnet and preferred ip address 35 ErrUnsupportedNetworkNoSubnetAndIP = fmt.Errorf("User specified IP address is supported only when connecting to networks with user configured subnets") 36 // ErrUnsupportedNetworkAndAlias conflict between network mode and alias 37 ErrUnsupportedNetworkAndAlias = fmt.Errorf("Network-scoped alias is supported only for containers in user defined networks") 38 )