Browse Source

Default Gateway endpoints must be annonymous

Signed-off-by: Madhu Venugopal <madhu@docker.com>
Madhu Venugopal 9 years ago
parent
commit
a687e431c0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libnetwork/default_gateway.go

+ 2 - 0
libnetwork/default_gateway.go

@@ -58,6 +58,8 @@ func (sb *sandbox) setupDefaultGW(srcEp *endpoint) error {
 		}
 		}
 	}
 	}
 
 
+	createOptions = append(createOptions, CreateOptionAnonymous())
+
 	eplen := gwEPlen
 	eplen := gwEPlen
 	if len(sb.containerID) < gwEPlen {
 	if len(sb.containerID) < gwEPlen {
 		eplen = len(sb.containerID)
 		eplen = len(sb.containerID)