Browse Source

dont restart container unless new hash

reid 2 năm trước cách đây
mục cha
commit
f7edf841ee
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 			}