From 05f293e65eeb7d1c86ba5644ed8d682aaeddd53d Mon Sep 17 00:00:00 2001 From: Erik Hollensbe Date: Tue, 24 Jun 2014 11:57:35 -0700 Subject: [PATCH] Add mutex warning when specifying -icc or -ip-forward and -iptables=false Docker-DCO-1.1-Signed-off-by: Erik Hollensbe (github: erikh) --- docker/docker.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/docker.go b/docker/docker.go index 530bd1277a..6932d32776 100644 --- a/docker/docker.go +++ b/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") }