luci-app-dockerman: removal of the option socket_path
This option is for debug purposes only. It makes no sense to offer this
option to the user. Especially as it is not used for a remote
connection.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 63c5cb5614
)
This commit is contained in:
parent
0cdf59d845
commit
e23eec581b
2 changed files with 1 additions and 7 deletions
|
@ -22,7 +22,7 @@ function index()
|
|||
return
|
||||
end
|
||||
else
|
||||
local socket = luci.model.uci.cursor():get("dockerd", "globals", "socket_path")
|
||||
local socket = luci.model.uci.cursor():get("dockerd", "globals", "socket_path") or "/var/run/docker.sock"
|
||||
if socket and not nixio.fs.access(socket) then
|
||||
return
|
||||
end
|
||||
|
|
|
@ -97,12 +97,6 @@ o = s:option(Flag, "remote_endpoint",
|
|||
translate("Connect to remote endpoint"))
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(Value, "socket_path",
|
||||
translate("Docker Socket Path"))
|
||||
o.default = "unix:///var/run/docker.sock"
|
||||
o.placeholder = "unix:///var/run/docker.sock"
|
||||
o:depends("remote_endpoint", 1)
|
||||
|
||||
o = s:option(Value, "remote_host",
|
||||
translate("Remote Host"))
|
||||
o.placeholder = "10.1.1.2"
|
||||
|
|
Loading…
Reference in a new issue