func New() (Docker, error) {
	cli, err := moby.NewClientWithOpts(moby.FromEnv)
	if err != nil {
		return nil, errors.WithStack(err)
	}
	return &dockerImpl{moby: cli}, nil
}
New returns instance of docker dockerImpl
package docker
import (
	"bytes"
	"context"
	"github.com/docker/docker/api/types"
	"github.com/docker/docker/api/types/container"
	moby "github.com/docker/docker/client"
	"github.com/duck8823/duci/domain/model/job"
	"github.com/moby/buildkit/frontend/dockerfile/command"
	"github.com/moby/buildkit/frontend/dockerfile/parser"
	"github.com/pkg/errors"
	"io"
	"io/ioutil"
	"os"
	"strings"
)
type dockerImpl struct {
	moby Moby
}