// CreateDockerClient Create a new docker client pointing to the Sandbox VM's Docker daemon
CreateDockerClient Create a new docker client pointing to the Sandbox VM's Docker daemon
// CreateDockerClient Create a new docker client pointing to the Sandbox VM ' s Docker daemon
func CreateDockerClient() (*client.Client, error) {
	hostDockerEnv, err := getHostDockerEnv()
	if err != nil {
		return nil, err
	}
	httpClient, err := createDockerHTTPClient(hostDockerEnv)
	if err != nil {
		return nil, err
	}
	host := hostDockerEnv["DOCKER_HOST"]
	return client.NewClient(host, constants.DockerAPIVersion, httpClient, nil)
}
func CreateDockerClient ( ) ( * client . Client , error ) { hostDockerEnv , err := getHostDockerEnv ( ) if err != nil { return nil , err } httpClient , err := createDockerHTTPClient ( hostDockerEnv ) if err != nil { return nil , err } host := hostDockerEnv [ " " ] return client . NewClient ( host , constants . DockerAPIVersion , httpClient , nil ) }
CreateDockerClient Create a new docker client pointing to the Sandbox VM's Docker daemon
CreateDockerClient Create a new docker client pointing to the Sandbox VM ' s Docker daemon