Logging in or Pushing an Image to VMware Harbor Registry Fails With an Access Error
search cancel

Logging in or Pushing an Image to VMware Harbor Registry Fails With an Access Error

book

Article ID: 437092

calendar_today

Updated On:

Products

VMware Tanzu Platform - Cloud Foundry VMware Tanzu Kubernetes Grid Integrated Edition

Issue/Introduction

When you try to push an image to VMware Harbor Registry you get an access restricted error. Example:

~ % docker push harbor.example.com/demos/hello-world
Using default tag: latest
The push refers to repository [harbor.example.com/demos/hello-world]
Get "https://harbor.example.com/v2/": Access to harbor.example.com has been restricted by your administrators

 

You see a similar error when trying to login:

~ % docker login harbor.example.com/demos -u admin
Password:
Error response from daemon: Get "https://harbor.example.com/v2/": Access to harbor.example.com has been restricted by your administrators. To access this registry, ask your administrators to add it to your organization's allowed registries.

Environment

VMware Harbor Registry tile

Cause

This is caused by Registry Access Management, a feature of Docker Desktop

Resolution

Contact your Docker Desktop team to have the registry added to the list of allowed registries