Authored by qinchao

docker多集群发布

... ... @@ -242,8 +242,8 @@ public class DockerServerDeployService {
JSONObject jo=containerJa.getJSONObject(i);
String image=jo.getString("image");
if(StringUtils.isNotBlank(image)&&image.indexOf("/"+serviceName+":")>0){
int index=image.lastIndexOf(":");
String imageLeft=image.substring(0,index);
//int index=image.lastIndexOf(":");
//String imageLeft=image.substring(0,index);
String imageLeft_to_imageStore=image.substring(0,image.lastIndexOf("/"+serviceName+":"));
String imageLeft_without_imageStore =imageLeft_to_imageStore.substring(0,imageLeft_to_imageStore.lastIndexOf("/"));
//String imageRight=image.substring(index+1);
... ...