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

Varolan konteynerleri getiren bir fonksiyon eklendi

üst e0f4bad2
......@@ -13,6 +13,18 @@ app.get("/", (_, res) => {
res.send("Merhaba Dünya!");
});
app.get("/containers", (_, res) => {
docker.listContainers(function (_, containers) {
res.send(
containers.filter(
(i) =>
i.Image.startsWith("nyxteam/oyunparki-small") ||
i.Image.startsWith("nyxteam/oyunparki-full")
)
);
});
});
app.get("/images", (_, res) => {
docker.listImages(function (_, images) {
res.send(
......
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