# Rasa\_core with docker train fails

**URL:** <https://forum.rasa.com/t/rasa-core-with-docker-train-fails/3905>\
**Category:** Rasa Open Source\
**Created:** [December 28, 2018, 2:05am UTC](https://forum.rasa.com/t/rasa-core-with-docker-train-fails/3905 "2018-12-28T02:05:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsreeni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rsreeni/32/1507_2.png) [@rsreeni](https://forum.rasa.com/u/rsreeni)\
**Post date:** [December 28, 2018, 2:05am UTC](https://forum.rasa.com/t/rasa-core-with-docker-train-fails/3905/1 "2018-12-28T02:05:36Z")

</div>

Im getting a File not found error trying to run docker train on rasa\_core.

I tried running

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

and I get

Exception: Failed to load domain specification from ‘/Users/rsreeni/rasa-app-data/project/domain.yml’. File not found!

Ive tried

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

and

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

all three result in same error…

The file does exist in the directory.

Can any one help, please?

Thanks,

-Sreeni

---

<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 3, 2019, 8:38am UTC](https://forum.rasa.com/t/rasa-core-with-docker-train-fails/3905/2 "2019-01-03T08:38:18Z")

</div>

I am also getting same error , Please any one help me.

---

<div class="post-metadata">

**Author:** ![rsreeni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rsreeni/32/1507_2.png) [@rsreeni](https://forum.rasa.com/u/rsreeni)\
**Post date:** [January 3, 2019, 1:56pm UTC](https://forum.rasa.com/t/rasa-core-with-docker-train-fails/3905/3 "2019-01-03T13:56:05Z")

</div>

Can you post the file locations and the command you run with the error ? some location parameter could be off… that was what was mine. I got it to work… if you can post the locations and screen, I may be able to take a look.

-Sreeni

---

<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 4, 2019, 5:35am UTC](https://forum.rasa.com/t/rasa-core-with-docker-train-fails/3905/4 "2019-01-04T05:35:15Z")

</div>

Hi,

files location: C:\Rasa\Docker\domain.yml C:\Rasa\Docker\data\stories.md

command: 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

Exception: Failed to load domain specification from ‘/app/project/domain.yml’. File not found!

---

<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 8, 2019, 6:00am UTC](https://forum.rasa.com/t/rasa-core-with-docker-train-fails/3905/5 "2019-01-08T06:00:42Z")

</div>

Please respond

---

<div class="post-metadata">

**Author:** ![david-moven](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@david-moven](https://forum.rasa.com/u/david-moven)\
**Post date:** [February 4, 2019, 5:29pm UTC](https://forum.rasa.com/t/rasa-core-with-docker-train-fails/3905/6 "2019-02-04T17:29:15Z")

</div>

same issue. this method is copied from the docs, so i wonder why it’s defunct edit: fixed by following this step first: [Step 3: Start Building](https://rasa.com/docs/get_started_step3/) then I ran the same block in the starter-pack-rasa-stack dir

---

<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:** [February 5, 2019, 7:37am UTC](https://forum.rasa.com/t/rasa-core-with-docker-train-fails/3905/7 "2019-02-05T07:37:48Z")

</div>

Hi @david-moven thanks for the help. It is working fine. But after docker-compose up , while i am giving the input meaasge

curl --request POST   
–url [http://localhost:5005/webhooks/rest/webhook](http://localhost:5005/webhooks/rest/webhook)   
–header ‘content-type: application/json’   
–data ‘{ “message”: “hello” }’

I have get an error curl: (7) Failed to connect to localhost port 5005: Connection refused.

While running docker-compose up , i have got this warning :Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

---

<div class="post-metadata">

**Author:** ![Growing-bison](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/growing-bison/32/2164_2.png) [@Growing-bison](https://forum.rasa.com/u/Growing-bison)\
**Post date:** [June 21, 2019, 10:25am UTC](https://forum.rasa.com/t/rasa-core-with-docker-train-fails/3905/8 "2019-06-21T10:25:46Z")

</div>

Hi  
I have execuated the command successfully,

> docker run -v $(pwd):/app/project -v $(pwd)/models/rasa\_core:/app/models -v $(pwd)/config:/app/config -v $(pwd)/data:/app/data rasa/rasa\_core:latest train -d config/core\_domain\_edit2.yml -s data/story\_start.md -o models/dialogue2

Hoping it is useful.

My files listed as following:

```auto
├── config
│ ├── config_multiintents_0528.yml
│ ├── core_domain_edit2.yml
│ └── policies.yml
├── data
│ ├── data_0516_foruse.json
│ ├── story_start.md
│ └── total_word_feature_extractor_zh.dat
├── docker_start_train_core.sh
├── docker_start_train_nlu.sh
├── entrypoint.sh
├── logs
├── models
│ ├── rasa_core
│ │ ├── dialogue2
│ │ │ ├── domain.json
│ │ │ ├── domain.yml
│ │ │ ├── policy_0_KerasPolicy
│ │ │ │ ├── featurizer.json
│ │ │ │ ├── keras_model.h5
│ │ │ │ ├── keras_policy.json
│ │ │ │ └── keras_policy.tf_config.pkl
│ │ │ ├── policy_1_FallbackPolicy
│ │ │ │ └── fallback_policy.json
│ │ │ ├── policy_2_MemoizationPolicy
│ │ │ │ ├── featurizer.json
│ │ │ │ └── memorized_turns.json
│ │ │ ├── policy_3_FormPolicy
│ │ │ │ ├── featurizer.json
│ │ │ │ └── memorized_turns.json
│ │ │ └── policy_metadata.json
│ │ ├── domain.json
│ │ ├── domain.yml
│ │ ├── policy_0_KerasPolicy
│ │ │ ├── featurizer.json
│ │ │ ├── keras_model.h5
│ │ │ ├── keras_policy.json
│ │ │ └── keras_policy.tf_config.pkl
│ │ ├── policy_1_FallbackPolicy
│ │ │ └── fallback_policy.json
│ │ ├── policy_2_MemoizationPolicy
│ │ │ ├── featurizer.json
│ │ │ └── memorized_turns.json
│ │ ├── policy_3_FormPolicy
│ │ │ ├── featurizer.json
│ │ │ └── memorized_turns.json
│ │ └── policy_metadata.json
│ └── rasa_nlu
│ └── nlu
│ └── default
│ └── model_20190620-033330
│ ├── checkpoint
│ ├── crf_model.pkl
│ ├── entity_extractor.dat
│ ├── entity_synonyms.json
│ ├── intent_classifier_tensorflow_embedding.ckpt.data-00000-of-00001
│ ├── intent_classifier_tensorflow_embedding.ckpt.index
│ ├── intent_classifier_tensorflow_embedding.ckpt.meta
│ ├── intent_classifier_tensorflow_embedding_encoded_all_intents.pkl
│ ├── intent_classifier_tensorflow_embedding_inv_intent_dict.pkl
│ ├── intent_featurizer_count_vectors.pkl
│ ├── metadata.json
│ └── training_data.json
├── train_core.sh
└── train_nlu.sh

```

Environment:  
Ubuntu==18.04  
rasa/rasa\_core:latest (Created": "2019-03-04T14:44:35.378658156Z)
