Browse Source

Add mutex warning when specifying -icc or -ip-forward and -iptables=false

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Erik Hollensbe 11 năm trước cách đây
mục cha
commit
05f293e65e
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      docker/docker.go

+ 4 - 0
docker/docker.go

@@ -95,6 +95,10 @@ func main() {
 		log.Fatal("You specified -b & --bip, mutually exclusive options. Please specify only one.")
 	}
 
+	if !*flEnableIptables && !*flInterContainerComm {
+		log.Fatal("You specified --iptables=false with --icc=false. ICC uses iptables to function. Please set --icc or --iptables to true.")
+	}
+
 	if *flDebug {
 		os.Setenv("DEBUG", "1")
 	}