Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling component manager in gcloud CLI

I made a fresh install of gcloud for ubuntu as instructed here. I want to use the additional components offered by gcloud like kubectl and docker.

So, when I tried typing gcloud components install kubectl, I get an error saying that The component manager is disabled for this installation. Here is the full error message:

gcloud component install error

like image 407
Lakshman Diwaakar Avatar asked May 12 '17 04:05

Lakshman Diwaakar


1 Answers

This is because you installed google-cloud-sdk with a package manager like apt-get or yum.

kubectl: If you look here you can see how to install additional components. Basically sudo apt-get install kubectl.

If by docker you mean the docker-credential-gcr then I don't know if there's a way to install using a package manager, can't seem to find it. Perhaps ou can try the github repo. Mind you, you don't need this for commands like gcloud docker -- push gcr.io/your-project/your-image:version.
If you mean actual docker for building images and running them locally, that's standalone software which you need to install separately, instructions here.

Alternatively, you can uninstall google-cloud-sdk with apt-get and then reinstall with interactive installer, which will support the suggested gcloud components install *

like image 51
Robert Lacok Avatar answered Sep 24 '22 21:09

Robert Lacok