func (m *DockerTool) DockerWipe(c *typgo.Context) error {
	ids, err := m.dockerIDs(c)
	if err != nil {
		return fmt.Errorf("DockerTool-ID: %w", err)
	}
	for _, id := range ids {
		if err := m.kill(c, id); err != nil {
			return fmt.Errorf("fail to kill #%s: %s", id, err.Error())
		}
	}
	return nil
}
DockerWipe clean all docker process
package typdocker
import (
	"fmt"
	"io/ioutil"
	"os"
	"strings"
	"github.com/typical-go/typical-go/pkg/typgo"
)
type (
	DockerTool struct {
		ComposeFiles []string
		EnvFile      string
	}
)
var _ typgo.Tasker = (*DockerTool)(nil)
func (m *DockerTool) Task() *typgo.Task {
	return &typgo.Task{
		Name:  "docker",
		Usage: "docker-compose wrapper",
		SubTasks: []*typgo.Task{
			{
				Name:   "wipe",
				Usage:  "Kill all running docker container",
				Action: typgo.NewAction(m.DockerWipe),
			},
		},
		Action: typgo.NewAction(m.DockerCompose),
	}
}