luci-app-dockerman: fix socket definition

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2020-08-03 14:17:58 +02:00
parent 400985d020
commit 169c136d61

View 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)