When attempting to push a Docker image to the Tanzu Platform registry, the cf push command fails with an unauthorized error.
Symptoms:
tanzu-platform-content.packages.broadcom.com/containers/photon-5/airflow: unauthorized: The client does not have permission for manifestThis issue occurs when the CF_DOCKER_PASSWORD environment variable is missing, incorrect, or the registry token has expired.
To resolve this issue, generate a new registry token and set the environment variable:
CF_DOCKER_PASSWORD environment variable in your terminal:export CF_DOCKER_PASSWORD='<YOUR_GENERATED_TOKEN>'cf push <APP_NAME> --docker-image <IMAGE_URL> --docker-username <USERNAME>