You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daemon/config/config.go
+94Lines changed: 94 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,41 @@ const (
30
30
DefaultCgroupDriver=CgroupfsDriver
31
31
)
32
32
33
+
var (
34
+
// ErrConflictContainerNetworkAndLinks conflict between --net=container and links
35
+
ErrConflictContainerNetworkAndLinks=fmt.Errorf("Conflicting options: container type network can't be used with links. This would result in undefined behavior")
36
+
// ErrConflictUserDefinedNetworkAndLinks conflict between --net=<NETWORK> and links
37
+
ErrConflictUserDefinedNetworkAndLinks=fmt.Errorf("Conflicting options: networking can't be used with links. This would result in undefined behavior")
38
+
// ErrConflictSharedNetwork conflict between private and other networks
39
+
ErrConflictSharedNetwork=fmt.Errorf("Container sharing network namespace with another container or host cannot be connected to any other network")
40
+
// ErrConflictHostNetwork conflict from being disconnected from host network or connected to host network.
41
+
ErrConflictHostNetwork=fmt.Errorf("Container cannot be disconnected from host network or connected to host network")
42
+
// ErrConflictNoNetwork conflict between private and other networks
43
+
ErrConflictNoNetwork=fmt.Errorf("Container cannot be connected to multiple networks with one of the networks in private (none) mode")
44
+
// ErrConflictNetworkAndDNS conflict between --dns and the network mode
45
+
ErrConflictNetworkAndDNS=fmt.Errorf("Conflicting options: dns and the network mode")
46
+
// ErrConflictNetworkHostname conflict between the hostname and the network mode
47
+
ErrConflictNetworkHostname=fmt.Errorf("Conflicting options: hostname and the network mode")
48
+
// ErrConflictHostNetworkAndLinks conflict between --net=host and links
49
+
ErrConflictHostNetworkAndLinks=fmt.Errorf("Conflicting options: host type networking can't be used with links. This would result in undefined behavior")
50
+
// ErrConflictContainerNetworkAndMac conflict between the mac address and the network mode
51
+
ErrConflictContainerNetworkAndMac=fmt.Errorf("Conflicting options: mac-address and the network mode")
52
+
// ErrConflictNetworkHosts conflict between add-host and the network mode
53
+
ErrConflictNetworkHosts=fmt.Errorf("Conflicting options: custom host-to-IP mapping and the network mode")
54
+
// ErrConflictNetworkPublishPorts conflict between the publish options and the network mode
55
+
ErrConflictNetworkPublishPorts=fmt.Errorf("Conflicting options: port publishing and the container type network mode")
56
+
// ErrConflictNetworkExposePorts conflict between the expose option and the network mode
57
+
ErrConflictNetworkExposePorts=fmt.Errorf("Conflicting options: port exposing and the container type network mode")
58
+
// ErrUnsupportedNetworkAndIP conflict between network mode and requested ip address
59
+
ErrUnsupportedNetworkAndIP=fmt.Errorf("User specified IP address is supported on user defined networks only")
60
+
// ErrUnsupportedNetworkNoSubnetAndIP conflict between network with no configured subnet and requested ip address
61
+
ErrUnsupportedNetworkNoSubnetAndIP=fmt.Errorf("User specified IP address is supported only when connecting to networks with user configured subnets")
62
+
// ErrUnsupportedNetworkAndAlias conflict between network mode and alias
63
+
ErrUnsupportedNetworkAndAlias=fmt.Errorf("Network-scoped alias is supported only for containers in user defined networks")
64
+
// ErrConflictUTSHostname conflict between the hostname and the UTS mode
65
+
ErrConflictUTSHostname=fmt.Errorf("Conflicting options: hostname and the UTS mode")
66
+
)
67
+
33
68
// Config refers to daemon's whole configurations.
0 commit comments