Running rasa on docker not working

And similar when trying to train.

$ docker run -v $(pwd):/app rasa/rasa train

$ INFO rasa.model - Data (core-config) for Core model section changed. Processed Story Blocks: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 1226.91it/s, # trackers=1] Processed Story Blocks: 0%| | 0/5 [00:00<?, ?it/s, # trackers=5]%

Then it exits again.

And when I try to run it doesn’t exit the terminal command but http://localhost:5005 is not reachable.

$ docker run -v $(pwd):/app rasa/rasa run $ INFO root - Starting Rasa server on http://localhost:5005

Thank you!