|
@@ -156,11 +156,9 @@ func StartContainer(containerName string, containerType string) (structs.Contain
|
|
|
}
|
|
}
|
|
|
imageExistsLocally := false
|
|
imageExistsLocally := false
|
|
|
for _, img := range images {
|
|
for _, img := range images {
|
|
|
- for _, tag := range img.RepoTags {
|
|
|
|
|
- if img.ID == desiredHash {
|
|
|
|
|
- imageExistsLocally = true
|
|
|
|
|
- break
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if img.ID == desiredHash {
|
|
|
|
|
+ imageExistsLocally = true
|
|
|
|
|
+ break
|
|
|
}
|
|
}
|
|
|
if imageExistsLocally {
|
|
if imageExistsLocally {
|
|
|
break
|
|
break
|