title: How to add GCP IAM roles to Service Account
body: <p>I am trying to create a docker swarm node on a VM instance on GCP using <code>docker-machine</code>.</p>
  <pre><code>docker-machine create swarm-node -d google --google-machine-type e2-standard-2 --google-zone europe-north1-a --google-project myproject-name
  </code></pre>
  <p>I use a GCP Service Account in localhost docker-machine CLI.</p>
  <p><code>export GOOGLE_APPLICATION_CREDENTIALS=&quot;/home/my-name-here/.gcp/path-to-my-service-account-keyfile.json&quot;</code></p>
  <p>But I got this error:</p>
  <pre><code>Error with pre-create check: &quot;Project with ID \&quot;myproject-name\&quot; not found. googleapi: Error 403: Required 'compute.projects.get' permission for 'projects/myproject-name', forbidden&quot;
  </code></pre>
  <p>How can I add <code>compute.projects.get</code> GCP IAM access to the GCP Service Account?</p>