func pull(image string) { if !docker.OutOfDate(image) { return } glog.Infof("Pulling image %s", image) result := docker.Pull(image) printStreams(result) if result.Err != nil { glog.Errorf("Error from pull: %v", result.Err) return } glog.Infoln("Pulling complete") }
func pull(image string) { // If we are "local", use a local version and don't actually do a pull. // Also don't pull if we aren't out of date yet. if strings.HasSuffix(image, ":local") || !docker.OutOfDate(image) { return } glog.Infof("Pulling image %s", image) result := docker.Pull(image) printStreams(result) if result.Err != nil { glog.Errorf("Error from pull: %v", result.Err) return } glog.Infoln("Pulling complete") }