# Rancher + Google Cloud Registry

**URL:** <https://forums.suse.com/t/rancher-google-cloud-registry/3730>\
**Category:** Rancher 1.x\
**Created:** [August 17, 2016, 5:25pm UTC](https://forums.suse.com/t/rancher-google-cloud-registry/3730 "2016-08-17T17:25:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmitry\_Shultz](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/dmitry_shultz/32/5232_2.png) [@Dmitry\_Shultz](https://forums.suse.com/u/Dmitry_Shultz)\
**Post date:** [August 17, 2016, 5:25pm UTC](https://forums.suse.com/t/rancher-google-cloud-registry/3730/1 "2016-08-17T17:25:34Z")

</div>

I’m able to login and push/pull images using the docker cmd line using JSON file as specified here (i.e. i’m not prefixing the command by ‘gcloud’):

[https://cloud.google.com/container-registry/docs/advanced-authentication](https://cloud.google.com/container-registry/docs/advanced-authentication)

However, when i specify the password in the Rancher interface as “$(cat /path/to/rancher-key.json)” - the same way as in the command - rancher fails to pull the image on host with:

Error (401 Client Error: Unauthorized (“Get [https://us.gcr.io/v2/rancher-140519/nginx/manifests/latest:](https://us.gcr.io/v2/rancher-140519/nginx/manifests/latest:) unauthorized: Not Authorized.”))

There was some blog article about no support for the Google Cloud Registry because of OAuth2, but I’m not sure about using JSON file, does it supposed to work or not?

---

<div class="post-metadata">

**Author:** ![leodotcloud](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/leodotcloud/32/3103_2.png) [@leodotcloud](https://forums.suse.com/u/leodotcloud)\
**Post date:** [December 14, 2018, 4:44pm UTC](https://forums.suse.com/t/rancher-google-cloud-registry/3730/2 "2018-12-14T16:44:27Z")

</div>

As I ran into the same problem, landed here to find this question unanswered. For the benefit of others searching for the same in future, I have no other option but to revive this old conversation.

I have added more info here: [https://github.com/rancher/rancher/issues/6956#issuecomment-447380752](https://github.com/rancher/rancher/issues/6956#issuecomment-447380752)

TL; DR:

Adding the registry is not enough, one needs to add the following while launching a Pod/Deployment, etc

```auto
imagePullSecrets:
- name: registry-secret-name

```
