add custom container sorter

This commit is contained in:
Bradley Cicenas
2016-12-30 03:22:25 +00:00
parent d5b35fe01b
commit 12ce9b1874
3 changed files with 58 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ func main() {
panic(err)
}
g := &Grid{0, make(map[string]*Container)}
g := &Grid{0, "id", make(map[string]*Container)}
for _, c := range getContainers(client) {
g.AddContainer(c.ID[:12], parseName(c.Names))
}