summaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index 552a4efc8..c833f2300 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -392,5 +392,20 @@ func (r *Runtime) Info() ([]InfoData, error) {
}
info = append(info, InfoData{Type: "store", Data: storeInfo})
+ reg, err := GetRegistries()
+ if err != nil {
+ return nil, errors.Wrapf(err, "error getting registries")
+ }
+ registries := make(map[string]interface{})
+ registries["registries"] = reg
+ info = append(info, InfoData{Type: "registries", Data: registries})
+
+ i, err := GetInsecureRegistries()
+ if err != nil {
+ return nil, errors.Wrapf(err, "error getting registries")
+ }
+ insecureRegistries := make(map[string]interface{})
+ insecureRegistries["registries"] = i
+ info = append(info, InfoData{Type: "insecure registries", Data: insecureRegistries})
return info, nil
}