Docker train config.yml policies issue

Hey again.

I would like to train my model using this command

docker run -v :/app rasa/rasa:latest-full train --domain domain.yml --data data --out models --config config.yml

but i’m facing this error

The config file 'config.yml' is missing mandatory parameters: 'policies'. Add missing parameters to config file and try again.

But there is ‘policies’ field on my config gfile

$ more config.yml 
language: fr

pipeline: 
  - name: WhitespaceTokenizer
  - name: CRFEntityExtractor
  - name: EntitySynonymMapper
  - name: CountVectorsFeaturizer
  - name: EmbeddingIntentClassifier

policies: 
  - name: MemoizationPolicy
  - name: KerasPolicy
  - name: MappingPolicy
  - name: FormPolicy

Can someone tell me what is wrong? because i don’t see anything wrong. thx :slight_smile:

@thom I noticed you haven’t mentioned a directory to mount to /app inside the container. That’s definitely the problem. Please take a look at the command here - Running Rasa with Docker

Oh, i copy pasted the wrong line…;

i use custom Makefile to make all commands very shorter.

i run:

$ make train

Inside the Makefile there is no misstakes with the directory

$ more Makefile | grep train
train:
    docker run -v $(pwd):/app rasa/rasa:latest-full train --domain domain.yml --data data --out models --config config.yml