title: Airflow in Docker: how to add DAGs to Airflow?
body: <p>I want to add DAG files to Airflow, which runs in Docker on Ubuntu. I used the following <a href="https://github.com/puckel/docker-airflow" rel="noreferrer">git repository</a>, containing the configuration and link to docker image. When I run <code>docker run -d -p 8080:8080 puckel/docker-airflow webserver</code>, everything works fin. But I can't find a way to safely add DAGs to Airflow. Alternatively, I ran <code>docker run -d -p 8080:8080 puckel/docker-airflow webserver -v /root/dags:/usr/local/airflow/dags</code>, no success either.</p>
  
  <p>I tried to edit the <code>/config/airflow.cfg</code> and add the git credentials to a repository containing dags, but no success. Also, added a folder <code>/dags</code> in <code>home/root/dags</code>, containing DAGs, assuming that this folder is shared with the Docker container. But no success either. </p>
  
  <p>The Docker composer file contains the following volume settings:</p>
  
  <pre><code>webserver:
          image: puckel/docker-airflow:1.10.0-2
          ...
          volumes:
              - ./dags:/usr/local/airflow/dags 
  </code></pre>
  
  <p>But when I add stuff to <code>./dags</code> in the folder from where I run the Docker container, the DAGs don't appear in Airflow.</p>
  
  <p>How can I safely add DAGs to Airflow when it runs in Docker?</p>