From c51a53786b895f0af69e4daac466bd32c802faeb Mon Sep 17 00:00:00 2001 From: 7ttp <117663341+7ttp@users.noreply.github.com> Date: Sun, 15 Feb 2026 22:29:09 +0530 Subject: [PATCH] fix: remove all containers on stop to prevent name conflicts --- internal/utils/docker.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/utils/docker.go b/internal/utils/docker.go index 6da0d5aa6..1a3081c44 100644 --- a/internal/utils/docker.go +++ b/internal/utils/docker.go @@ -106,9 +106,7 @@ func DockerRemoveAll(ctx context.Context, w io.Writer, projectId string) error { // Gracefully shutdown containers var ids []string for _, c := range containers { - if c.State == "running" { - ids = append(ids, c.ID) - } + ids = append(ids, c.ID) } result := WaitAll(ids, func(id string) error { if err := Docker.ContainerStop(ctx, id, container.StopOptions{}); err != nil {