Error: unauthorized: The client does not have permission for manifest during cf push
search cancel

Error: unauthorized: The client does not have permission for manifest during cf push

book

Article ID: 439481

calendar_today

Updated On:

Products

VMware Tanzu Platform - Hub

Issue/Introduction

When attempting to push a Docker image to the Tanzu Platform registry, the cf push command fails with an unauthorized error.

Symptoms:

  • The staging process starts but fails quickly.
  • The logs show the following error: Failed getting docker image manifest by tag: reading manifest #### in tanzu-platform-content.packages.broadcom.com/containers/photon-5/airflow: unauthorized: The client does not have permission for manifest

Environment

  • VMware Tanzu Platform - Hub
  • Cloud Foundry CLI (cf CLI)

Cause

This issue occurs when the CF_DOCKER_PASSWORD environment variable is missing, incorrect, or the registry token has expired.

Resolution

To resolve this issue, generate a new registry token and set the environment variable:

  1. Generate a new registry token by following the steps in KB 421110.
  2. Set the CF_DOCKER_PASSWORD environment variable in your terminal:
    export CF_DOCKER_PASSWORD='<YOUR_GENERATED_TOKEN>'
  3. Execute the push command again:
    cf push <APP_NAME> --docker-image <IMAGE_URL> --docker-username <USERNAME>

Additional Information