--- a/registry.go Sun Jul 05 06:03:07 2020 -0500
+++ b/registry.go Sun Jul 05 06:03:46 2020 -0500
@@ -6,18 +6,26 @@
"github.com/heroku/docker-registry-client/registry"
-func registryGetDigest(repository, tag string) (string, error) {
- reg, err := registry.New("https://index.docker.io", "", "")
+ r, err := registry.New("https://index.docker.io", "", "")
+ // disable the logger on the registry + r.Logf = func(format string, args ...interface{}) {} +func registryGetDigest(repository, tag string) (string, error) { // make sure the repository doesn't have a tag
repository = strings.SplitN(repository, ":", 2)[0]
- // disable the logger on the registry
- reg.Logf = func(format string, args ...interface{}) {}
manifest, err := reg.ManifestV2(repository, tag)