feat: add image volume controller
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
@@ -19,12 +19,18 @@ class DashboardController {
|
||||
let networks = await docker.network.list();
|
||||
let nodes = await docker.node.list();
|
||||
let tasks = await docker.task.list();
|
||||
let containers = await docker.container.list();
|
||||
let images = await docker.image.list();
|
||||
let volumes = await docker.volume.list();
|
||||
return {
|
||||
nodes: nodes.map(n => n.Description.Hostname),
|
||||
tasks: tasks.map(t => t.ID),
|
||||
stacks: Array.from(new Set(stacks)),
|
||||
services,
|
||||
networks: networks.map(n => n.Name)
|
||||
networks: networks.map(n => n.Name),
|
||||
containers: containers.map(c => c.Names),
|
||||
images: images.map(i => i.Id),
|
||||
volumes: volumes.Volumes.map(v => v.Name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user