Jelajahi Sumber

dont restart container unless new hash

reid 2 tahun lalu
induk
melakukan
f7edf841ee
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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
 			}