luci-app-docker: code alignment

This commit is contained in:
Beginner-Go 2022-06-04 17:03:32 +00:00
parent 44cfa4275e
commit 121be53fdb
5 changed files with 6 additions and 8 deletions

View File

@ -4,7 +4,7 @@ function index()
if not nixio.fs.access("/etc/config/dockerd") then
return
end
entry({"admin", "services", "docker"}, cbi("docker"), _("Docker CE Container"), 199).dependent = true
entry({"admin", "services", "docker", "status"}, call("act_status")).leaf = true
end

View File

@ -7,17 +7,17 @@ end
m = Map("dockerd", "Docker CE", translate("Docker is a set of platform-as-a-service (PaaS) products that use OS-level virtualization to deliver software in packages called containers.") .. button)
m:section(SimpleSection).template = "docker/docker_status"
m:section(SimpleSection).template = "docker/docker_status"
s = m:section(TypedSection, "docker")
s.anonymous = true
wan_mode = s:option(Flag, "wan_mode", translate("Enable WAN access Docker"), translate("Enable WAN access docker mapped ports"))
wan_mode = s:option(Flag, "wan_mode", translate("Enable WAN access Docker"))
wan_mode.description = translate("Enable WAN access docker mapped ports")
wan_mode.default = 0
wan_mode.rmempty = false
o = s:option(DummyValue,"readme",translate(" "))
o = s:option(DummyValue, "readme", translate(" "))
o.description = translate("<a href=\"../../../../DockerReadme.pdf\" target=\"_blank\" />"..translate("Download DockerReadme.pdf").."</a>")
return m

View File

@ -23,4 +23,3 @@ w
fi
echo "y" | mkfs.ext4 /dev/sda$partid

View File

@ -1,3 +1,3 @@
#!/bin/sh
docker run -d --restart=always --name="portainer" -p 9999:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
docker run -d --restart=always --name="portainer" -p 9999:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

View File

@ -18,5 +18,4 @@ start_service() {
procd_set_param command /usr/bin/dockerd $dockerwan
procd_set_param limits nofile="${nofile} ${nofile}"
procd_close_instance
}