Browse Source

Changed image mirror to http://get.docker.io/images

Solomon Hykes 12 năm trước cách đây
mục cha
commit
c78cbbd002
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      commands/commands.go

+ 2 - 3
commands/commands.go

@@ -446,10 +446,9 @@ func (srv *Server) CmdImport(stdin io.ReadCloser, stdout io.Writer, args ...stri
 		if u.Scheme == "" {
 			u.Scheme = "http"
 		}
-		// FIXME: hardcode a mirror URL that does not depend on a single provider.
 		if u.Host == "" {
-			u.Host = "s3.amazonaws.com"
-			u.Path = path.Join("/docker.io/images", u.Path)
+			u.Host = "get.docker.io"
+			u.Path = path.Join("/images", u.Path)
 		}
 		fmt.Fprintf(stdout, "Downloading from %s\n", u.String())
 		// Download with curl (pretty progress bar)