code: func (c *Client) PullImage(ctx context.Context, opts docker.PullImageOptions) error {
  	// This is to workaround an issue in the Docker API, where it doesn't
  	// respect the registry param. We have to put the registry in the
  	// repository field.
  	if opts.Registry != "" {
  		opts.Repository = fmt.Sprintf("%s/%s", opts.Registry, opts.Repository)
  	}
  
  	authConf, err := authConfiguration(c.AuthProvider, opts.Registry)
  	if err != nil {
  		return err
  	}
  
  	return c.Client.PullImage(opts, authConf)
  }
docs: // PullImage wraps the docker clients PullImage to handle authentication.