summaryrefslogtreecommitdiffhomepage
path: root/collections/luci-lib-docker/luasrc
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-06-16 14:49:37 +0200
committerGitHub <noreply@github.com>2021-06-16 14:49:37 +0200
commit6e0af9320474d6c0635b629422278fac7eef1c68 (patch)
tree0e6d9f325720307772413a539342d9c00fc8e5d9 /collections/luci-lib-docker/luasrc
parent19e237d0155819c467395033907b4790409c81a4 (diff)
parentfe795d5278e541c91d16374371c7f2a0c3eae998 (diff)
Merge pull request #5128 from hue715/20210605-luci-lib-docker
luci-lib-docker: add container export support
Diffstat (limited to 'collections/luci-lib-docker/luasrc')
-rw-r--r--collections/luci-lib-docker/luasrc/docker.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/collections/luci-lib-docker/luasrc/docker.lua b/collections/luci-lib-docker/luasrc/docker.lua
index 6424653708..cd9bf132d1 100644
--- a/collections/luci-lib-docker/luasrc/docker.lua
+++ b/collections/luci-lib-docker/luasrc/docker.lua
@@ -307,7 +307,7 @@ local gen_api = function(_table, http_method, api_group, api_action)
local _api_action
if api_action == "get_archive" or api_action == "put_archive" then
- api_action = "archive"
+ _api_action = "archive"
elseif api_action == "df" then
_api_action = "system/df"
elseif api_action ~= "list" and api_action ~= "inspect" and api_action ~= "remove" then
@@ -411,7 +411,8 @@ gen_api(_docker, "POST", "exec", "resize")
gen_api(_docker, "GET", "exec", "inspect")
gen_api(_docker, "GET", "containers", "get_archive")
gen_api(_docker, "PUT", "containers", "put_archive")
--- TODO: export,attch
+gen_api(_docker, "GET", "containers", "export")
+-- TODO: attch
gen_api(_docker, "GET", "images", "list")
gen_api(_docker, "POST", "images", "create")