Changed image mirror to http://get.docker.io/images
This commit is contained in:
parent
d6c3d02205
commit
c78cbbd002
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue