<p>I made a fresh install of gcloud for ubuntu as instructed <a href="https://cloud.google.com/sdk/" rel="noreferrer">here</a>. I want to use the additional components offered by gcloud like <strong>kubectl</strong> and <strong>docker</strong>.</p>

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

<p><a href="https://i.stack.imgur.com/k8boq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/k8boq.png" alt="gcloud component install error"></a></p>

<p>This is because you installed <code>google-cloud-sdk</code> with a package manager like <code>apt-get</code> or <code>yum</code>. </p>

<p><strong>kubectl</strong>: 
If you look <a href="https://cloud.google.com/sdk/downloads#apt-get" rel="noreferrer">here</a> you can see how to install additional components. Basically <code>sudo apt-get install kubectl</code>. </p>

<p>If by <strong>docker</strong> you mean the <code>docker-credential-gcr</code> 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 <a href="https://github.com/GoogleCloudPlatform/docker-credential-gcr" rel="noreferrer">github repo</a>.  Mind you, you don't need this for commands like <code>gcloud docker -- push gcr.io/your-project/your-image:version</code>.<br>
<em>If you mean actual docker for building images and running them locally, that's standalone software which you need to install separately, <a href="https://docs.docker.com/engine/installation/" rel="noreferrer">instructions here</a>.</em> </p>

<p>Alternatively, you can uninstall <code>google-cloud-sdk</code> with <code>apt-get</code> and then reinstall with <a href="https://cloud.google.com/sdk/downloads#interactive" rel="noreferrer">interactive installer</a>, which will support the suggested <code>gcloud components install *</code></p>
