Merge pull request #3080 from weaveworks/issues/plugin-v2-modprobe

net-plugin: bind mount /lib/modules
This commit is contained in:
Bryan Boreham authored and GitHub committed 2017-08-15 12:05:33 +01:00
commit a6cd456f8b
1 file changed
+8 -1
+8 -1
View File
@@ -13,7 +13,8 @@
"linux": { "linux": {
"capabilities": [ "capabilities": [
"CAP_SYS_ADMIN", "CAP_SYS_ADMIN",
"CAP_NET_ADMIN" "CAP_NET_ADMIN",
"CAP_SYS_MODULE"
] ]
}, },
"mounts": [ "mounts": [
@@ -40,6 +41,12 @@
"source": "/etc/", "source": "/etc/",
"type": "bind", "type": "bind",
"options": ["rbind"] "options": ["rbind"]
},
{
"destination": "/lib/modules/",
"source": "/lib/modules/",
"type": "bind",
"options": ["rbind"]
} }
], ],
"env": [ "env": [