Преглед на файлове

dont restart container unless new hash

reid преди 2 години
родител
ревизия
f7edf841ee
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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
 			}