# Error in running rasa with docker

**URL:** <https://forum.rasa.com/t/error-in-running-rasa-with-docker/21674>\
**Category:** Rasa Open Source\
**Created:** [November 25, 2019, 11:01am UTC](https://forum.rasa.com/t/error-in-running-rasa-with-docker/21674 "2019-11-25T11:01:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BishalLakha](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bishallakha/32/6051_2.png) [@BishalLakha](https://forum.rasa.com/u/BishalLakha)\
**Post date:** [November 25, 2019, 11:01am UTC](https://forum.rasa.com/t/error-in-running-rasa-with-docker/21674/1 "2019-11-25T11:01:37Z")

</div>

I am getting permission denied error while trying to initialize rasa with docker.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/3c76295994612c4c37c72d20ef9c3d56ff3bca23.png)

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [November 25, 2019, 5:16pm UTC](https://forum.rasa.com/t/error-in-running-rasa-with-docker/21674/2 "2019-11-25T17:16:20Z")

</div>

Hm, can you try initializing the bot with `rasa init` in the working directory, and then moving directly to this step? [Running Rasa with Docker](https://rasa.com/docs/rasa/user-guide/running-rasa-with-docker/#building-an-assistant-with-rasa-and-docker)

Seems that maybe your docker daemon doesn’t have access to write into your working directory

---

<div class="post-metadata">

**Author:** ![BishalLakha](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bishallakha/32/6051_2.png) [@BishalLakha](https://forum.rasa.com/u/BishalLakha)\
**Post date:** [November 25, 2019, 5:45pm UTC](https://forum.rasa.com/t/error-in-running-rasa-with-docker/21674/3 "2019-11-25T17:45:46Z")

</div>

I tried that too, but got this error

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/f/fd4a132b39008c18ba7d2626d2d30492d6a988b1.png)

---

<div class="post-metadata">

**Author:** ![amontin](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@amontin](https://forum.rasa.com/u/amontin)\
**Post date:** [November 29, 2019, 1:22pm UTC](https://forum.rasa.com/t/error-in-running-rasa-with-docker/21674/4 "2019-11-29T13:22:38Z")

</div>

I solved this by running the docker command with the user parameter, i.e.

docker run --user $(id -u):$(id -g) -v $(pwd):/app rasa/rasa init --no-prompt

Note however that I then had the problem that the “models” directory it created in my current working directory was only writable by root, resulting in another permissions error. So I changed the “models” directory’s permissions in my working directory with the chmod command to make it writable by the current non-root user, and ran the above again. It worked and I was then able to run the server.

---

<div class="post-metadata">

**Author:** ![himanshus97](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/himanshus97/32/5425_2.png) [@himanshus97](https://forum.rasa.com/u/himanshus97)\
**Post date:** [November 29, 2019, 2:13pm UTC](https://forum.rasa.com/t/error-in-running-rasa-with-docker/21674/5 "2019-11-29T14:13:19Z")

</div>

try to change mode of file. Use:- sudo chmod -R 777 “YOUR FOLDERNAME”
