luci-app-dockerman: fix socket definition
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 3 Aug 2020 12:17:58 +0000 (14:17 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 11 Aug 2020 10:55:42 +0000 (12:55 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua

index dc20125e29a49f96237126375ae2e8fa6627d860..59266ac49009d5357ff8082c5038aece10974832 100644 (file)
@@ -99,8 +99,8 @@ 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.default = "unix:///var/run/docker.sock"
+o.placeholder = "unix:///var/run/docker.sock"
 o:depends("remote_endpoint", 1)
 
 o = s:option(Value, "remote_host",
@@ -146,7 +146,7 @@ if nixio.fs.access("/usr/bin/dockerd") then
        o = s:option(DynamicList, "hosts",
                translate("Client connection"),
                translate('Specifies where the Docker daemon will listen for client connections'))
-       o:value("unix://var/run/docker.sock", "unix://var/run/docker.sock")
+       o:value("unix:///var/run/docker.sock", "unix:///var/run/docker.sock")
        o:value("tcp://0.0.0.0:2375", "tcp://0.0.0.0:2375")
        o.rmempty = true
        o:depends("remote_endpoint", 0)