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.
VMware Harbor Registry tile
This is caused by Registry Access Management, a feature of Docker Desktop
Contact your Docker Desktop team to have the registry added to the list of allowed registries