How to train when using docker - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum

👋 Introducing the Rasa Playground

How to train when using docker

post by laujen on Sep 25, 2020

laujenlaurence

Hi, I’m new to rasa, I setup a docker container with rasa and duckling. The docker-compose.yml contains the following:

version: '3.0'
services:
  rasa:
    image: rasa/rasa:2.0.0rc2-full
    ports:
      - 5005:5005
    volumes:
      - ./:/app
    command:
      - run
      - --cors
      - "*"
      - --enable-api
  duckling:
    image: rasa/duckling
    ports:
      - "8000:8000"

I run docker-compose up when I want to run the servers and I run docker-compose run rasa train when I want to train a new model. However every time I run the training command tf has to be downloaded again.

How can I avoid doing this? Thanks a lot

1.2k views

Related topics

Topic Replies Views Activity
Docker-compose train cmd failure
Rasa Open Source
2 368 Apr 2021
Rasa Docker problem with training the model
Rasa Open Source
12 3.4k May 2025
“No model found” rasa with docker
Rasa Open Source
15 3.6k Feb 2020
Running rasa 3 with docker in ubuntu 20
Rasa Open Source
4 1.3k Mar 2022
Can’t generate rasa Docker image from official RASA Dockerfile
Rasa Open Source
7 2.5k Feb 2020