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>
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
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"