sudo docker run -it --rm --user 1000 -v $(pwd):/app rasa/rasa:3.0.8-full init --no-prompt
sudo docker run --user 1000 -it -p 5005:5005 -v $(pwd):/app rasa/rasa:3.0.8-full run --enable-api --cors “*”
POST: http://localhost:5005/webhooks/rest/webhook
{
"message": "Hello",
"sender": "aziz"
}
response
[
{
"recipient_id": "aziz",
"text": "Hey! How are you?"
}
]
ChrisRahme
(Chris Rahmé)
February 25, 2022, 1:05pm
2
What’s the problem? This is the expected behavior.
@ChrisRahme I cannot load my trained model in docker, I have to train in container than it can be loaded.
ChrisRahme
(Chris Rahmé)
February 28, 2022, 3:49pm
4
How is that related to your above post?
Please provide the relevant info on what you’re trying to do.
Please read How to ask a great question .
hey, thanks for reply.
below are the issues, when you load a train model in docker contianer
opened 06:35PM - 16 Feb 22 UTC
type:bug
area:rasa-oss
### Rasa Open Source version
3.0.8
### Rasa SDK version
_No response_
### Ra… sa X version
_No response_
### Python version
3.8
### What operating system are you using?
Linux
### What happened?
Recently built models (past week or so) will not load if they use DIET. Here's the error from `3.0.8` but I have confirmed this issue affects `2.8.x` so I think this is somehow related to pip build environment changes.
```
2022-02-16 06:35:45 ERROR rasa.core.agent - Could not load model due to Error initializing graph component for node 'run_DIETClassifier5', No module named 'scipy.sparse._coo'
```
This may be related to #5303 and #10883.
### Command / Request
```shell
Running rasa-production using standard Helm deployment
```
### Relevant log output
_No response_
opened 05:44AM - 13 Feb 22 UTC
type:bug
area:rasa-oss
### Rasa Open Source version
rasa:3.0.8
### Rasa SDK version
_No respon… se_
### Rasa X version
_No response_
### Python version
3.8
### What operating system are you using?
Linux
### What happened?
Unable to run the rasa in docker
```
ERROR rasa.core.agent - Could not load model due to Error initializing graph component for node 'run_DIETClassifier4'..
```
docker-compose up
https://github.com/RasaHQ/rasa/blob/main/docker/docker-compose.yml
my docker-compose file
```
version: '3.0'
services:
rasa:
image: rasa/rasa:3.0.8-full
networks: ['rasa-network']
ports:
- "5005:5005"
volumes:
- "./formbot/:/app/"
environment:
MPLCONFIGDIR: "/tmp/"
command:
- run
- --enable-api
- --cors
- "*"
action_server:
image: rasa/rasa-sdk:latest
networks: ['rasa-network']
ports:
- "5055:5055"
volumes:
- "./formbot/actions:/app/actions"
duckling:
image: rasa/duckling:latest
networks: ['rasa-network']
ports:
- "8000:8000"
networks: {rasa-network: {}}
```
full logs
```
Attaching to test-doc_duckling_1, test-doc_action_server_1, test-doc_rasa_1
action_server_1 | 2022-02-13 05:39:25 INFO rasa_sdk.endpoint - Starting action endpoint server...
action_server_1 | 2022-02-13 05:39:25 INFO rasa_sdk.executor - Registered function for 'validate_restaurant_form'.
action_server_1 | 2022-02-13 05:39:25 INFO rasa_sdk.endpoint - Action endpoint is up and running on http://0.0.0.0:5055
duckling_1 | Listening on http://0.0.0.0:8000
rasa_1 | 2022-02-13 05:39:28 INFO root - Starting Rasa server on http://0.0.0.0:5005
rasa_1 | 2022-02-13 05:39:30 INFO rasa.core.processor - Loading model models/20220212-205144-small-slider.tar.gz...
rasa_1 | 2022-02-13 05:39:30 ERROR rasa.core.agent - Could not load model due to Error initializing graph component for node 'run_DIETClassifier4'..
rasa_1 | 2022-02-13 05:39:30 INFO root - Rasa server is up and running.
```
### Command / Request
_No response_
### Relevant log output
_No response_
Docker and dock-compose works with init project.
I do not have any questions, it is just a simple if you want to dockerize your chabot you have to use init.