فهرست منبع

Merge pull request #29380 from vieux/skip_empty_network_plugin

skip empty networks in plugin install
Anusha Ragunathan 8 سال پیش
والد
کامیت
738769d23c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      plugin/backend_linux.go

+ 1 - 1
plugin/backend_linux.go

@@ -125,7 +125,7 @@ func computePrivileges(pd distribution.PullData) (types.PluginPrivileges, error)
 	}
 
 	var privileges types.PluginPrivileges
-	if c.Network.Type != "null" && c.Network.Type != "bridge" {
+	if c.Network.Type != "null" && c.Network.Type != "bridge" && c.Network.Type != "" {
 		privileges = append(privileges, types.PluginPrivilege{
 			Name:        "network",
 			Description: "permissions to access a network",