Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pkg/app/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var CommandDestroy = &cli.Command{
},
&cli.PathFlag{
Name: "name",
Usage: "Name of the environment",
Usage: "Name of the environment or container ID",
Aliases: []string{"n"},
},
},
Expand Down
4 changes: 2 additions & 2 deletions pkg/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ func (c generalClient) Destroy(ctx context.Context, name string) (string, error)
// If the container is not running, there is no need to kill it.
logger.Debug("container is not running, there is no need to kill it")
case strings.Contains(errCause, "No such container"):
// If the container is not found, it is already destroyed.
logger.Debug("container is not found, there is no need to destroy it")
// If the container is not found, it is already destroyed or the name is wrong.
logger.Infof("cannot find container %s, maybe it's already destroyed or the name is wrong", name)
return "", nil
default:
return "", errors.Wrap(err, "failed to kill the container")
Expand Down