summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-dockerman/luasrc
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-07-17 15:11:10 +0200
committerFlorian Eckert <fe@dev.tdt.de>2020-07-28 14:16:14 +0200
commit88ced182031200ffa6a102cdac0c12865d135a22 (patch)
treeeab5860d7c921a73846ab2fe5a47f845ff2b2855 /applications/luci-app-dockerman/luasrc
parent1803f7e5253e8d3b7057f2ba11d8164408b7156e (diff)
luci-app-dockerman: remove ac handling
This is not applicable and this must be implemented in the docker-ce. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-dockerman/luasrc')
-rw-r--r--applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua15
1 files changed, 0 insertions, 15 deletions
diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
index 5515aacc7..0c2dbd365 100644
--- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
+++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
@@ -117,21 +117,6 @@ remote_port.default = "2375"
-- local debug_path = section_dockerman:taboption("dockerman", Value, "debug_path", translate("Debug Tempfile Path"), translate("Where you want to save the debug tempfile"))
if nixio.fs.access("/usr/bin/dockerd") then
- local allowed_interface = section_dockerman:taboption("ac", DynamicList, "ac_allowed_interface", translate("Allowed access interfaces"), translate("Which interface(s) can access containers under the bridge network, fill-in Interface Name"))
- local interfaces = luci.sys and luci.sys.net and luci.sys.net.devices() or {}
- for i, v in ipairs(interfaces) do
- allowed_interface:value(v, v)
- end
- local allowed_container = section_dockerman:taboption("ac", DynamicList, "ac_allowed_container", translate("Containers allowed to be accessed"), translate("Which container(s) under bridge network can be accessed, even from interfaces that are not allowed, fill-in Container Id or Name"))
- -- allowed_container.placeholder = "container name_or_id"
- if containers_list then
- for i, v in ipairs(containers_list) do
- if v.State == "running" and v.NetworkSettings and v.NetworkSettings.Networks and v.NetworkSettings.Networks.bridge and v.NetworkSettings.Networks.bridge.IPAddress then
- allowed_container:value(v.Id:sub(1,12), v.Names[1]:sub(2) .. " | " .. v.NetworkSettings.Networks.bridge.IPAddress)
- end
- end
- end
-
local dockerd_enable = section_dockerman:taboption("daemon", Flag, "daemon_ea", translate("Enable"))
dockerd_enable.enabled = "true"
dockerd_enable.rmempty = true