title: 403 Missing or insufficient permissions while using Firestore in a Container
body: <p>I have built a container which uses the Cloud Storage and Firestore. I am able to access the storage but not firestore. The service account I am using is a Owner.</p>
  <p><strong>DockerFile:</strong></p>
  <pre><code>WORKDIR /usr/src/app
  
  COPY packages-file.txt requirements.txt
  RUN pip3 install -r requirements.txt
  
  COPY cred.json cred.json
  ENV  GOOGLE_APPLICATION_CREDENTIALS &quot;/usr/src/app/cred.json&quot;
  
  COPY . .
  CMD [&quot;main.py&quot;]
  ENTRYPOINT [&quot;python3&quot;,&quot;main.py&quot;]
  
  </code></pre>
  <p><strong>main.py</strong></p>
  <pre><code>from google.cloud import firestore
  db = firestore.Client(project=projectID)
  </code></pre>
  <p><strong>Error</strong></p>
  <p><a href="https://i.stack.imgur.com/4QsYz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4QsYz.png" alt="Error image" /></a></p>