func Dir() string {
	return configDir
}
Dir returns the directory the configuration file is stored in
package config
import (
	"fmt"
	"io"
	"os"
	"path/filepath"
	"github.com/docker/cli/cli/config/configfile"
	"github.com/docker/cli/cli/config/credentials"
	"github.com/docker/docker/api/types"
	"github.com/docker/docker/pkg/homedir"
	"github.com/pkg/errors"
)
const (
	ConfigFileName = "config.json"
	configFileDir  = ".docker"
	oldConfigfile  = ".dockercfg"
)
var (
	configDir = os.Getenv("DOCKER_CONFIG")
)
func init() {
	if configDir == "" {
		configDir = filepath.Join(homedir.Get(), configFileDir)
	}
}