diff options
author | Chun Chen <ramichen@tencent.com> | 2015-12-22 09:29:39 +0800 |
---|---|---|
committer | Chun Chen <ramichen@tencent.com> | 2015-12-22 09:29:39 +0800 |
commit | 186a32acab9da1115ea59c4f8e4676c38d60a6a8 (patch) | |
tree | 5208cb15f420d711fc1ccbd26442ae6687b03ed1 /libnetwork/default_gateway.go | |
parent | b464d40ce63b83762c54ac5d89443ea179e933c0 (diff) | |
download | docker-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.go | 3 |
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 } |