mirror of https://github.com/docker/docs.git
Tag all images after pulling them
This commit is contained in:
parent
bebbbf914b
commit
d756ae4cb3
|
@ -371,11 +371,7 @@ func (srv *Server) pullRepository(out io.Writer, remote, askedTag string) error
|
||||||
fmt.Fprintf(out, "Error while retrieving image for tag: %s (%s); checking next endpoint\n", askedTag, err)
|
fmt.Fprintf(out, "Error while retrieving image for tag: %s (%s); checking next endpoint\n", askedTag, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err := srv.runtime.repositories.Set(remote, img.Tag, img.Id, true); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
success = true
|
success = true
|
||||||
delete(tagsList, img.Tag)
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if !success {
|
if !success {
|
||||||
|
|
Loading…
Reference in New Issue