Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
| ... | ... |
@@ -282,6 +282,8 @@ func (s *TagStore) pullRepository(r *registry.Session, out io.Writer, repoInfo * |
| 282 | 282 |
var lastErr, err error |
| 283 | 283 |
var isDownloaded bool |
| 284 | 284 |
for _, ep := range repoInfo.Index.Mirrors {
|
| 285 |
+ // Ensure endpoint is v1 |
|
| 286 |
+ ep = ep + "v1/" |
|
| 285 | 287 |
out.Write(sf.FormatProgress(stringid.TruncateID(img.ID), fmt.Sprintf("Pulling image (%s) from %s, mirror: %s", img.Tag, repoInfo.CanonicalName, ep), nil))
|
| 286 | 288 |
if isDownloaded, err = s.pullImage(r, out, img.ID, ep, repoData.Tokens, sf); err != nil {
|
| 287 | 289 |
// Don't report errors when pulling from mirrors. |