How to add google registry (gcr.io) as 3rd party registry?

How to add google registry (gcr.io) as 3rd party registry?
I followed this Google container - using an access token but it does not work.
The error is:
Cannot authenticate with gcr.io: 401 Client Error: Unauthorized for url: https://gcr.io/v1/repositories/gcloud-docker/go-bank/tags
However, it works on my machine using docker login and docker pull.