# RASA Core Docker Image: Socket.io

**URL:** <https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951>\
**Category:** Rasa Open Source\
**Created:** [December 31, 2018, 5:46pm UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951 "2018-12-31T17:46:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dariofiore](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dariofiore](https://forum.rasa.com/u/dariofiore)\
**Post date:** [December 31, 2018, 5:46pm UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951/1 "2018-12-31T17:46:14Z")

</div>

Hello there I setup a Chatbot with docker-compose according to [[https://rasa.com/docs/core/docker\_walkthrough/#creating-a-chatbot-using-rasa-core](https://rasa.com/docs/core/docker_walkthrough/#creating-a-chatbot-using-rasa-core)](Development with Docker). Everything works so far. But I failed to connect with [socket.io](http://socket.io). Also get inside the container with curl the following message:

> curl --noproxy localhost -X POST --data “EIO=3&transport=polling&t=MW5Gcdk” [http://localhost:5005/socket.io/](http://localhost:5005/socket.io/)

> 404 Not Found
> # Not Found
> 
> The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

In the docker-compose.yml file I added the following command: - --credentials - config/credentials.yml The credentials.yml File has the follwing content:

> rest:
> 
> socketio: user\_message\_evt: user\_uttered bot\_message\_evt: bot\_uttered

Inside the docker container is see the the following process:

> python -m rasa\_core.run --enable\_api --core models -c rest --endpoints config/endpoints.yml --credentials config/credentials.yml -o rasa\_core.log --cors \* -u current/

Could you please help me here? Is the [socket.io](http://socket.io) channel part of the rasa core image?

---

<div class="post-metadata">

**Author:** ![Chaitanya](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Chaitanya](https://forum.rasa.com/u/Chaitanya)\
**Post date:** [January 9, 2019, 3:46pm UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951/2 "2019-01-09T15:46:54Z")

</div>

Hi,

This is my directory

C:\Rasa\Docker\domain.yml

C:\Rasa\Docker\data\stories.md

While i am running below commands i got , Exception: Failed to load domain specification from ‘/app/project/domain.yml’. File not found!

docker run -v $(pwd):/app/project -v $(pwd)/models/rasa\_core:/app/models rasa/rasa\_core:latest train –domain project/domain.yml –stories project/data/stories.md –out models

How can i resolve it, please help me.

---

<div class="post-metadata">

**Author:** ![linediconsine](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/linediconsine/32/1427_2.png) [@linediconsine](https://forum.rasa.com/u/linediconsine)\
**Post date:** [January 9, 2019, 4:28pm UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951/3 "2019-01-09T16:28:10Z")

</div>

HI Dario, I am following with interest,

I might be wrong but I am fighting with the same problem, how do you try to connect the?

Thanks

---

<div class="post-metadata">

**Author:** ![dariofiore](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dariofiore](https://forum.rasa.com/u/dariofiore)\
**Post date:** [January 9, 2019, 5:11pm UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951/4 "2019-01-09T17:11:52Z")

</div>

Hi Chaitanya

Your problem has link to my problem, but I think I can help you anyway. Your OS seems to be Windows. Therefore you have to use {} to mount files. Here how I it works for me: docker run -v ${pwd}:/app/project -v ${pwd}/models/rasa\_core:/app/models rasa/rasa\_core:latest train --domain project/domain.yml --stories project/data/stories.md --out models

Hope it helps.

---

<div class="post-metadata">

**Author:** ![dariofiore](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dariofiore](https://forum.rasa.com/u/dariofiore)\
**Post date:** [January 9, 2019, 5:19pm UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951/5 "2019-01-09T17:19:28Z")

</div>

Hi Marco

Good to hear, that I am not the only one with troubles to connect a [socket.io](http://socket.io) client to RASA Core using docker compose. Here is my docker-compose file: [docker-compose.yml](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/b/b63ba86804dbc7fab400fbc33eddeaaddd3b29e0.yml) (1.3 KB)

By the way, I tried and want to use `https://github.com/mrbot-ai/rasa-webchat`. Everything worked smoothly with rasa-webchat and [socker.io](http://socker.io), when I used RASA Core without docker.

Thank you very much for your help!

---

<div class="post-metadata">

**Author:** ![dariofiore](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dariofiore](https://forum.rasa.com/u/dariofiore)\
**Post date:** [January 9, 2019, 7:45pm UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951/6 "2019-01-09T19:45:56Z")

</div>

> [@dariofiore](#):
>
> rest

I fixed the problem by myself. The parameter “-c rest” must be obmited in the docker-compose.yaml file.

The docker-compose.yml file locks the following now: [docker-compose.yml](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/b/b055a7dee5fd0962f7987579064e453d3e545a60.yml) (1.3 KB)

@rasa, Does --enable\_api cause the problem in combination with -c rest?

---

<div class="post-metadata">

**Author:** ![Chaitanya](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Chaitanya](https://forum.rasa.com/u/Chaitanya)\
**Post date:** [January 10, 2019, 7:24am UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951/7 "2019-01-10T07:24:42Z")

</div>

Hi dariofiore

That is also not working. Is there any directory issue.

---

<div class="post-metadata">

**Author:** ![ezodude](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@ezodude](https://forum.rasa.com/u/ezodude)\
**Post date:** [January 11, 2019, 6:28pm UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951/8 "2019-01-11T18:28:40Z")

</div>

@dariofiore Thanks for posting the docker-compose config. Had a similar issue but your solution fixed it. 👍

---

<div class="post-metadata">

**Author:** ![dariofiore](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dariofiore](https://forum.rasa.com/u/dariofiore)\
**Post date:** [January 11, 2019, 7:57pm UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951/10 "2019-01-11T19:57:21Z")

</div>

glad to hear, that I could help you!

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [January 23, 2019, 3:13pm UTC](https://forum.rasa.com/t/rasa-core-docker-image-socket-io/3951/11 "2019-01-23T15:13:10Z")

</div>

I just checked the source code and using the `-c` parameter indeed overwrites anything specified in `--credentials credentials.yml`. There should definitely be a warning or both configs should be used. I also created an issue for that: [Connector parameter overwrites credentials parameter. · Issue #1627 · RasaHQ/rasa\_core · GitHub](https://github.com/RasaHQ/rasa_core/issues/1627)

@dariofiore Nice fix! Thanks!
