title: Permission denied while trying to access files in container during docker-compose(UBUNTU 20.04)
body: <p>I am trying to work on a project which involves using rasa, when I run <code>sudo docker-compose up</code> , I get the following error .</p>
  <pre><code>Starting ask-my-doctor_rasa_1  ... done
  Attaching to ask-my-doctor_ngrok_1, ask-my-doctor_rasa_1
  rasa_1   | bash: line 15: /app/credentials.yml: Permission denied
  rasa_1   | bash: line 16: /app/train_logs.txt: Permission denied
  rasa_1   | bash: line 17: /app/run_actions_logs.txt: Permission denied
  rasa_1   | 2021-06-07 14:02:52 DEBUG    rasa.telemetry  - Could not read telemetry settings from configuration file: Configuration 'metrics' key not found.
  rasa_1   | 2021-06-07 14:02:52 WARNING  rasa.utils.common  - Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
  rasa_1   | 2021-06-07 14:02:53 DEBUG    rasa.cli.run  - 'models' not found. Using default location 'models' instead.
  rasa_1   | Traceback (most recent call last):
  rasa_1   |   File &quot;/opt/venv/bin/rasa&quot;, line 8, in &lt;module&gt;
  rasa_1   |     sys.exit(main())
  rasa_1   |   File &quot;/opt/venv/lib/python3.8/site-packages/rasa/__main__.py&quot;, line 117, in main
  rasa_1   |     cmdline_arguments.func(cmdline_arguments)
  rasa_1   |   File &quot;/opt/venv/lib/python3.8/site-packages/rasa/cli/run.py&quot;, line 118, in run
  rasa_1   |     args.model = _validate_model_path(args.model, &quot;model&quot;, DEFAULT_MODELS_PATH)
  rasa_1   |   File &quot;/opt/venv/lib/python3.8/site-packages/rasa/cli/run.py&quot;, line 71, in _validate_model_path
  rasa_1   |     os.makedirs(default, exist_ok=True)
  rasa_1   |   File &quot;/usr/lib/python3.8/os.py&quot;, line 223, in makedirs
  rasa_1   |     mkdir(name, mode)
  rasa_1   | PermissionError: [Errno 13] Permission denied: 'models'
  ask-my-doctor_rasa_1 exited with code 1
  </code></pre>
  <p>I have also tried to just keep the container running and tried to login and create a file just to check and there as well I get the &quot;permission denied&quot; message.</p>
  <p>How do I solve this permission issue?</p>
  <p>Any help would be appreciated.</p>