code: func makeEncodedAuthConfigFromRemote(authConfigs map[string]coretypes.AuthConfig, remote string) (string, error) {
  	ref, err := reference.ParseNormalizedNamed(remote)
  	if err != nil {
  		return "", err
  	}
  
  	// Resolve the Repository name from fqn to RepositoryInfo
  	repoInfo, err := registry.ParseRepositoryInfo(ref)
  	if err != nil {
  		return "", err
  	}
  
  	serverAddress := repoInfo.Index.Name
  	if authConfig, exists := authConfigs[serverAddress]; exists {
  		if encodedAuth, err := encodeAuthToBase64(authConfig); err == nil {
  			return encodedAuth, nil
  		}
  		return "", err
  	}
  	return "dummy", nil
  }
docs: // image begin
  // MakeAuthConfigFromRemote Calculate encoded AuthConfig from registry and eru-core config
  // See https://github.com/docker/cli/blob/16cccc30f95c8163f0749eba5a2e80b807041342/cli/command/registry.go#L67