Procházet zdrojové kódy

dont restart container unless new hash

reid před 2 roky
rodič
revize
f7edf841ee
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      docker/docker.go

+ 1 - 1
docker/docker.go

@@ -157,7 +157,7 @@ func StartContainer(containerName string, containerType string) (structs.Contain
 	imageExistsLocally := false
 	for _, img := range images {
 		for _, tag := range img.RepoTags {
-			if tag == desiredRepo+":"+desiredTag && img.ID == desiredHash {
+			if img.ID == desiredHash {
 				imageExistsLocally = true
 				break
 			}