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>
This commit is contained in:
parent
1803f7e525
commit
88ced18203
1 changed files with 0 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue