Pārlūkot izejas kodu

dont restart container unless new hash

reid 2 gadi atpakaļ
vecāks
revīzija
29c279ed88
1 mainītis faili ar 3 papildinājumiem un 5 dzēšanām
  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