code: func getManifest(ctx context.Context, dockerCli command.Cli, listRef, namedRef reference.Named, insecure bool) (types.ImageManifest, error) {
  	data, err := dockerCli.ManifestStore().Get(listRef, namedRef)
  	switch {
  	case store.IsNotFound(err):
  		return dockerCli.RegistryClient(insecure).GetManifest(ctx, namedRef)
  	case err != nil:
  		return types.ImageManifest{}, err
  	default:
  		return data, nil
  	}
  }
docs: // getManifest from the local store, and fallback to the remote registry if it
  //  doesn't exist locally