mirror of https://github.com/docker/docs.git
Stop invalid calls to Registry
This code was resulting in a call for /v1/images/<namespace>/<repository>/ancestry which the Registry doesn't understand. Furthermore, it was masking the original error.
This commit is contained in:
parent
597ca192e7
commit
d47507791e
|
@ -1011,16 +1011,9 @@ func (srv *Server) ImagePull(localName string, tag string, out io.Writer, sf *ut
|
||||||
localName = remoteName
|
localName = remoteName
|
||||||
}
|
}
|
||||||
|
|
||||||
err = srv.pullRepository(r, out, localName, remoteName, tag, endpoint, sf, parallel)
|
if err = srv.pullRepository(r, out, localName, remoteName, tag, endpoint, sf, parallel); err != nil {
|
||||||
if err == registry.ErrLoginRequired {
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err != nil {
|
|
||||||
if err := srv.pullImage(r, out, remoteName, endpoint, nil, sf); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue