Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion command/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@ func RemoveContainers(o *option.Option) {
return
}

// Stop all containers first to ensure they can be removed
stopArgs := append([]string{"stop", "--time", "1"}, ids...)
New(o, stopArgs...).WithoutCheckingExitCode().Run()

// Remove containers, ignoring failures to prevent test cleanup from failing
args := append([]string{"rm", "--force"}, ids...)
Run(o, args...)
New(o, args...).WithoutCheckingExitCode().Run()
}

// RemoveVolumes removes all unused local volumes in the testing environment specified by o.
Expand Down