summaryrefslogtreecommitdiff
path: root/libnetwork/default_gateway.go
diff options
context:
space:
mode:
authorChun Chen <ramichen@tencent.com>2015-12-22 09:29:39 +0800
committerChun Chen <ramichen@tencent.com>2015-12-22 09:29:39 +0800
commit186a32acab9da1115ea59c4f8e4676c38d60a6a8 (patch)
tree5208cb15f420d711fc1ccbd26442ae6687b03ed1 /libnetwork/default_gateway.go
parentb464d40ce63b83762c54ac5d89443ea179e933c0 (diff)
downloaddocker-186a32acab9da1115ea59c4f8e4676c38d60a6a8.tar.gz
Add internal network option
Signed-off-by: Chun Chen <ramichen@tencent.com>
Diffstat (limited to 'libnetwork/default_gateway.go')
-rw-r--r--libnetwork/default_gateway.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnetwork/default_gateway.go b/libnetwork/default_gateway.go
index 139242c6a5..d9277ba577 100644
--- a/libnetwork/default_gateway.go
+++ b/libnetwork/default_gateway.go
@@ -103,6 +103,9 @@ func (sb *sandbox) needDefaultGW() bool {
if ep.getNetwork().Type() == "null" || ep.getNetwork().Type() == "host" {
continue
}
+ if ep.getNetwork().Internal() {
+ return false
+ }
if ep.joinInfo.disableGatewayService {
return false
}