浏览代码

Merge pull request #704 from mavenugo/dgw

Default Gateway endpoints must be annonymous
aboch 9 年之前
父节点
当前提交
df8c425c3d
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
 	if len(sb.containerID) < gwEPlen {
 		eplen = len(sb.containerID)