Parcourir la source

dont restart container unless new hash

reid il y a 2 ans
Parent
commit
29c279ed88
1 fichiers modifiés avec 3 ajouts et 5 suppressions
  1. 3 5
      docker/docker.go

+ 3 - 5
docker/docker.go

@@ -156,11 +156,9 @@ func StartContainer(containerName string, containerType string) (structs.Contain
 	}
 	imageExistsLocally := false
 	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 {
 			break