Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit 3c74089

Browse files
authored
Merge pull request #22 from portainer/fix/EE-2574/redeploy-notwork-stack
fix(stack) redeploy-not-work-arm EE-2574
2 parents 6c2d0a3 + fd4da5b commit 3c74089

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

compose/internal/composeplugin/composeplugin.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,15 @@ func newCommand(command []string, filePaths []string) composeCommand {
163163
}
164164
}
165165

166-
//TO-DO: double check docker compose plugin logic
167-
//to see if it is necessary to implement forceRereate arg here
168166
func newUpCommand(filePaths []string, forceRereate bool) composeCommand {
169-
return newCommand([]string{"up", "-d"}, filePaths)
167+
args := []string{"up", "-d"}
168+
if forceRereate {
169+
args = append(args, "--force-recreate")
170+
}
171+
return newCommand(args, filePaths)
170172
}
171173

174+
172175
func newDownCommand(filePaths []string) composeCommand {
173176
return newCommand([]string{"down", "--remove-orphans"}, filePaths)
174177
}

0 commit comments

Comments
 (0)