Kaydet (Commit) 1a4e4c47 authored tarafından Hakkı Dizdar's avatar Hakkı Dizdar

Konteynerleri silme fonksiyonu eklendi

üst c51a6ee1
...@@ -44,6 +44,18 @@ app.post("/stop", (req, res) => { ...@@ -44,6 +44,18 @@ app.post("/stop", (req, res) => {
}); });
}); });
app.post("/remove", (req, res) => {
const container = docker.getContainer(req.body.container);
container
.remove()
.then(() => {
res.status(200).end();
})
.catch(() => {
res.status(500).end();
});
});
require("./socket")(app); require("./socket")(app);
app.listen(3000); app.listen(3000);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment