1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Don't pull an image that is already local

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-07-20 22:28:18 +10:00
parent 0ecdfff839
commit 3de5a836c9
3 changed files with 57 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ func (s *Service) missingImage() bool {
return false
}
client := s.context.ClientFactory.Create(s)
_, _, err := client.ImageInspectWithRaw(context.Background(), s.Config().Image, false)
_, _, err := client.ImageInspectWithRaw(context.Background(), image, false)
return err != nil
}