Set Prune=true in redeployGitStack to fix container name conflict on redeploy #6

Open
Dave wants to merge 1 commits from fix/prune-containers into test

View File

@ -247,7 +247,7 @@ public class PortainerApiClient {
throw new PortainerDeploymentException("Endpoint ID must not be null"); throw new PortainerDeploymentException("Endpoint ID must not be null");
} }
PortainerRedeployRequest body = new PortainerRedeployRequest(pullImage, false, env); PortainerRedeployRequest body = new PortainerRedeployRequest(pullImage, true, env);
HttpEntity<PortainerRedeployRequest> entity = new HttpEntity<>(body, buildAuthHeaders()); HttpEntity<PortainerRedeployRequest> entity = new HttpEntity<>(body, buildAuthHeaders());
try { try {