mirror of https://github.com/docker/docs.git
Merge pull request #8901 from dmcgowan/v2_registry_mirror_check
Skip V2 registry and immediately fallback to V1 when mirrors are provided
This commit is contained in:
commit
a7dea37b78
|
@ -139,7 +139,7 @@ func (s *TagStore) CmdPull(job *engine.Job) engine.Status {
|
||||||
mirrors = s.mirrors
|
mirrors = s.mirrors
|
||||||
}
|
}
|
||||||
|
|
||||||
if isOfficial || endpoint.Version == registry.APIVersion2 {
|
if len(mirrors) == 0 && (isOfficial || endpoint.Version == registry.APIVersion2) {
|
||||||
j := job.Eng.Job("trust_update_base")
|
j := job.Eng.Job("trust_update_base")
|
||||||
if err = j.Run(); err != nil {
|
if err = j.Run(); err != nil {
|
||||||
return job.Errorf("error updating trust base graph: %s", err)
|
return job.Errorf("error updating trust base graph: %s", err)
|
||||||
|
|
Loading…
Reference in New Issue