Merge pull request #807 from nalind/kpod-storage-status
kpod: add more storage information to "info"
This commit is contained in:
commit
85215abf7e
1 changed files with 11 additions and 0 deletions
|
@ -139,7 +139,18 @@ func storeInfo(c *cli.Context) (string, map[string]interface{}, error) {
|
|||
// lets say storage driver in use, number of images, number of containers
|
||||
info := map[string]interface{}{}
|
||||
info["GraphRoot"] = store.GraphRoot()
|
||||
info["RunRoot"] = store.RunRoot()
|
||||
info["GraphDriverName"] = store.GraphDriverName()
|
||||
info["GraphOptions"] = store.GraphOptions()
|
||||
statusPairs, err := store.Status()
|
||||
if err != nil {
|
||||
return storeStr, nil, err
|
||||
}
|
||||
status := map[string]string{}
|
||||
for _, pair := range statusPairs {
|
||||
status[pair[0]] = pair[1]
|
||||
}
|
||||
info["GraphStatus"] = status
|
||||
images, err := store.Images()
|
||||
if err != nil {
|
||||
info["ImageStore"] = infoErr(err)
|
||||
|
|
Loading…
Reference in a new issue