grim/tagpull

232236236f1a
Parents 76c18febd8ac
Children 661a31198963
Hide almost all of the logs from the registry client
  • +3 -0
    registry.go
  • --- a/registry.go Thu Jun 18 06:33:56 2020 -0500
    +++ b/registry.go Thu Jun 18 06:38:36 2020 -0500
    @@ -10,6 +10,9 @@
    return "", err
    }
    + // disable the logger on the registry
    + reg.Logf = func(format string, args ...interface{}) {}
    +
    manifest, err := reg.ManifestV2(repository, tag)
    return manifest.Config.Digest.String(), err