mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-12 22:03:29 +02:00
Update dockman
This commit is contained in:
@ -117,6 +117,15 @@ handle.stop_container = function(data)
|
||||
end
|
||||
end
|
||||
|
||||
handle.restart_container = function(data)
|
||||
local res = exec(data.host, "docker restart "..data.id, false)
|
||||
res = res:gsub('[\n\r]+', '')
|
||||
if res == data.id then
|
||||
return result("OK")
|
||||
else
|
||||
return error(res)
|
||||
end
|
||||
end
|
||||
|
||||
handle.rm_container = function(data)
|
||||
local res = exec(data.host, "docker stop "..data.id, false)
|
||||
|
File diff suppressed because one or more lines are too long
@ -7,7 +7,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "xsang.le@gmail.com"
|
||||
},
|
||||
"version":"0.1.0-b",
|
||||
"version":"0.1.1-b",
|
||||
"category":"Development",
|
||||
"iconclass":"fa fa-cubes",
|
||||
"mimes":["none"],
|
||||
|
Reference in New Issue
Block a user