title: Permissions Issues - cannot write log files to docker-volume
body: <p>We're running <code>DBT</code> in Airflow on a GCP Compute Engine using Docker and <code>docker-compose</code>. In the <code>docker-compose.yml</code> file for our Airflow deployment, the DBT repo is attached as a volume:</p>
  <pre><code>webserver:
      ...
      volumes:
          - ../our-dbt-repo:/usr/local/airflow/dbt
  </code></pre>
  <p>Running <code>dbt-run</code> usually generates a <code>/logs</code> directory with DBT logs. However, running <code>dbt-run</code> from the docker container on the GCP machine is throwing the error <code>[Errno 13] Permission denied: 'logs'</code>.</p>
  <p>To test permissions, I ran <code>docker exec -it &lt;DockerContainerID&gt; bash</code> from the command line of the GCP machine (while the docker container is running) to get into the running docker container, and ran <code>cd /usr/local/airflow/dbt/ &amp;&amp; touch file.txt</code>, and received the error: <code>touch: cannot touch 'file.txt': Permission denied</code>. So it seems clear that no files can be added to the <code>/dbt</code> folder that was added as a volume in the Docker Container, which is why the logs cannot get written.</p>
  <p>Is there a way to give our <code>/dbt</code> volume permissions to write logs? Perhaps we can write DBT logs somewhere else (not in the container on the GCP server), that way there are no writes required in the <code>/dbt</code> volume on the container?</p>