Skip to content

Commit 00266df

Browse files
samalbashin-
authored andcommitted
Fixed public pull + Added some verbosity about what is happening
1 parent 3febeb9 commit 00266df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

registry.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func (graph *Graph) PullRepository(stdout io.Writer, remote, askedTag string, re
269269
if err != nil {
270270
return err
271271
}
272-
if authConfig != nil {
272+
if authConfig != nil && len(authConfig.Username) > 0 {
273273
req.SetBasicAuth(authConfig.Username, authConfig.Password)
274274
}
275275
req.Header.Set("X-Docker-Token", "true")
@@ -309,6 +309,7 @@ func (graph *Graph) PullRepository(stdout io.Writer, remote, askedTag string, re
309309
}
310310

311311
for askedTag, imgId := range tagsList {
312+
fmt.Fprintf(stdout, "Resolving tag \"%s:%s\" from %s\n", remote, askedTag, endpoints)
312313
success := false
313314
for _, registry := range endpoints {
314315
if imgId == "" {

0 commit comments

Comments
 (0)