fresh vm - not able to pull docker image from gcp container registry

1,470 views
Skip to first unread message

Miro Karpis

unread,
Nov 13, 2018, 6:33:37 PM11/13/18
to Google Cloud Developers
I'm trying to pull image from a container registry on a fresh vm (have tried debian, ubuntu,..) but I'm always getting gcloud errors like:

miro@ingestion-vm-1:~$ gcloud components install docker-credential-gcr
ERROR: (gcloud.components.install) You cannot perform this action because this Cloud SDK installation is managed by an external package manager.
Please consider using a separate installation of the Cloud SDK created through the default mechanism described at: https://cloud.google.com/sdk/

have tried also with docker-credential-cloud, but the same result.


Please is there somewhere an example / list of steps I need to to be able to pull a docker image from a fresh vm?



Thanks a lot for any kind of feedback :)

m.


Larbi (Google Cloud Support)

unread,
Nov 14, 2018, 11:21:18 AM11/14/18
to Google Cloud Developers
Hello  Karpis,

So as I understand if you want to pull an image from your private container registry in your project here the documentation (I assume you already pushed into the your container registry).

One thing that I don't understand is  "from a container registry on a fresh vm", if you build you docker image inside your VM, therefor you can push it into your container registry then pull the image form another VM after authenticating (gcloud init) and 

All the images that you pushed them you will find them on the container register section 

Here a documentation on how to use the gcloud docker command.
Reply all
Reply to author
Forward
0 new messages