From 182c3012da75f00f68890afe70258b67d96a9f88 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 29 Jul 2020 09:06:04 +0200 Subject: luci-app-dockerman: unify socket_path and hosts by adding the prefix unix:// Signed-off-by: Florian Eckert --- .../luci-app-dockerman/luasrc/model/cbi/dockerman/container.lua | 2 +- .../luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'applications/luci-app-dockerman') diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/container.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/container.lua index 6628ed055..9ea006396 100644 --- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/container.lua +++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/container.lua @@ -723,7 +723,7 @@ elseif action == "console" then if remote and host and port then hosts = host .. ':'.. port elseif socket_path then - hosts = "unix://" .. socket_path + hosts = socket_path else return end 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 c2ed6b139..f1fc4f027 100644 --- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua +++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua @@ -99,9 +99,8 @@ o.rmempty = false o = s:option(Value, "socket_path", translate("Docker Socket Path")) -o.default = "/var/run/docker.sock" -o.placeholder = "/var/run/docker.sock" -o.rmempty = false +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", -- cgit v1.2.3