From f6f7d3524862563f8388e1382bb28ecbde8cf265 Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 27 May 2015 14:59:57 -0700 Subject: [PATCH] Restore the stripped registry version number Signed-off-by: Richard Scothern --- graph/pull.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graph/pull.go b/graph/pull.go index 9d6b75d7a8..98831eba85 100644 --- a/graph/pull.go +++ b/graph/pull.go @@ -282,6 +282,8 @@ func (s *TagStore) pullRepository(r *registry.Session, out io.Writer, repoInfo * var lastErr, err error var isDownloaded bool for _, ep := range repoInfo.Index.Mirrors { + // Ensure endpoint is v1 + ep = ep + "v1/" out.Write(sf.FormatProgress(stringid.TruncateID(img.ID), fmt.Sprintf("Pulling image (%s) from %s, mirror: %s", img.Tag, repoInfo.CanonicalName, ep), nil)) if isDownloaded, err = s.pullImage(r, out, img.ID, ep, repoData.Tokens, sf); err != nil { // Don't report errors when pulling from mirrors.