Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
add further check for the container name
Browse files Browse the repository at this point in the history
  • Loading branch information
tobespc committed Sep 6, 2019
1 parent 470a8ee commit c8dbd2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions actions/stop-all.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ func StopAllCommand() {
for _, container := range containers {
for _, key := range containerArr {
if strings.HasPrefix(container.Image, key) {
fmt.Println("Stopping container ", container.Names[0], "... ")
utils.StopContainer(container)
if key != "appsody" || strings.Contains(container.Names[0], "cw-") {
fmt.Println("Stopping container ", container.Names[0], "... ")
utils.StopContainer(container)
break
}
}
}
}
Expand Down

0 comments on commit c8dbd2b

Please sign in to comment.