code: func GetDefaultDockerConfig() *api.DockerConfig {
  	cfg := &api.DockerConfig{}
  
  	if cfg.Endpoint = os.Getenv("DOCKER_HOST"); cfg.Endpoint == "" {
  		cfg.Endpoint = client.DefaultDockerHost
  	}
  
  	certPath := os.Getenv("DOCKER_CERT_PATH")
  	if certPath == "" {
  		certPath = cliconfig.Dir()
  	}
  
  	cfg.CertFile = filepath.Join(certPath, "cert.pem")
  	cfg.KeyFile = filepath.Join(certPath, "key.pem")
  	cfg.CAFile = filepath.Join(certPath, "ca.pem")
  
  	if tlsVerify := os.Getenv("DOCKER_TLS_VERIFY"); tlsVerify != "" {
  		cfg.TLSVerify = true
  	}
  
  	return cfg
  }
docs: // GetDefaultDockerConfig checks relevant Docker environment variables to
  // provide defaults for our command line flags