inspect the full repo/image:tag name

This commit is contained in:
James DeFelice 2014-12-09 15:41:08 -05:00
parent 7f2d0c0f71
commit ca2840a8e8

View File

@ -222,8 +222,7 @@ func (p throttledDockerPuller) Pull(image string) error {
return fmt.Errorf("pull QPS exceeded.")
}
func (p dockerPuller) IsImagePresent(name string) (bool, error) {
image, _ := parseImageName(name)
func (p dockerPuller) IsImagePresent(image string) (bool, error) {
_, err := p.client.InspectImage(image)
if err == nil {
return true, nil