summaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorJosé Guilherme Vanz <jvanz@jvanz.com>2019-12-12 19:53:46 -0300
committerJosé Guilherme Vanz <jvanz@jvanz.com>2019-12-12 19:53:46 -0300
commit4f9672e94c16793b68fc40a82132e7b2e6dc06c2 (patch)
treee880c611f858a5a040f0b949d48ee444902f89e6 /libpod/runtime.go
parent465e142bf28ed04e78c8b32c0ecef6fe72a38ecc (diff)
downloadpodman-4f9672e94c16793b68fc40a82132e7b2e6dc06c2.tar.gz
podman-4f9672e94c16793b68fc40a82132e7b2e6dc06c2.tar.bz2
podman-4f9672e94c16793b68fc40a82132e7b2e6dc06c2.zip
podman: mirror information
Updates the podman info command to show the mirror information Issue https://github.com/containers/libpod/issues/4553 Signed-off-by: José Guilherme Vanz <jvanz@jvanz.com>
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go17
1 files changed, 4 insertions, 13 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index 3873079ce..c1b523cdf 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -691,24 +691,15 @@ func (r *Runtime) Info() ([]define.InfoData, error) {
}
info = append(info, define.InfoData{Type: "store", Data: storeInfo})
- reg, err := sysreg.GetRegistries()
- if err != nil {
- return nil, errors.Wrapf(err, "error getting registries")
- }
registries := make(map[string]interface{})
- registries["search"] = reg
-
- ireg, err := sysreg.GetInsecureRegistries()
+ regData, err := sysreg.GetRegistriesData()
if err != nil {
return nil, errors.Wrapf(err, "error getting registries")
}
- registries["insecure"] = ireg
-
- breg, err := sysreg.GetBlockedRegistries()
- if err != nil {
- return nil, errors.Wrapf(err, "error getting registries")
+ for _, reg := range regData {
+ registries[reg.Prefix] = reg
}
- registries["blocked"] = breg
+
info = append(info, define.InfoData{Type: "registries", Data: registries})
return info, nil
}