Browse Source

Default Gateway endpoints must be annonymous

Signed-off-by: Madhu Venugopal <madhu@docker.com>
Madhu Venugopal 9 năm trước cách đây
mục cha
commit
a687e431c0
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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)